Skip to content

ManushPatell/CampusCart

Repository files navigation

Status

Sadly, the AWS costs were too high to keep CampusCart running. Thank you for your support!


Development

To run CampusCart locally, make sure you have Docker installed. From the root folder:

Run

npm run dev

The 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.

Deployment

CAUTION: To delete all volumes and reset dockers cache

# Be CAREFUL with this one
docker system prune -a --volumes -f
npm run prod

HTTPS Renewal

Cron job to run the certbot image every night at 3AM.

0 3 * * * docker-compose run --rm certbot renew && docker-compose kill -s SIGHUP nginx

Getting into the db

While the db is running:

docker-compose exec -it db psql -U <username> -d <database>

Deleting the db

docker volume rm campuscart_db-data

If 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors