This project is a backend application built with Express, MongoDB, Redis and Mongoose. The sections below provides step-by-step guides for setting it up.
Ensure the following are installed on your machine:
Clone the project repository:
git clone https://github.com/simplecodez/shopping_cart_system.git
cd shopping_cart_system
npm installCreate a file named .env at the root of your project and populate this envs
MONGODB_URI=
JWT_SECRET=
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_USERNAME=default
The command below sets up the Redis image container as defined in the compose.yaml file.
docker-compose up -dRun the command below to start the app.
npm run devTo view the API documentation, open your browser and go to: