Sadly, the AWS costs were too high to keep CampusCart running. Thank you for your support!
To run CampusCart locally, make sure you have Docker installed. From the root folder:
Run
npm run devThe frontend and backend should run based on the config you provide it in your .env file.
Make a copy, and modify the .env.example if you have not already.
CAUTION: To delete all volumes and reset dockers cache
# Be CAREFUL with this one
docker system prune -a --volumes -fnpm run prodCron job to run the certbot image every night at 3AM.
0 3 * * * docker-compose run --rm certbot renew && docker-compose kill -s SIGHUP nginxWhile the db is running:
docker-compose exec -it db psql -U <username> -d <database>docker volume rm campuscart_db-dataIf it says "npm ci" failed to work. It's likely because the disk storage is full on the ec2. To fix this, clear all docker cached images and containers not in use. Make sure NOT to clear volumes.
You can also clean npm cache with
npm cache clean --force