The webapp uses Express.js for the backend (API based) and EJS to serve views.
It uses MongoDB(Atlas) as the database. For a detailed guide on how to connect to a Mongo database, refer to these links:
- Clone and cd into the repo folder
- Run
npm install
- Create a nodemon.json in the root folder and add your Mongo credentials:
{
"env": {
"MONGO_ATLAS_PW": <your_password>
}
}
- Run
npm run start
to start the dev server atlocalhost:3000
- Make cart functional again
- Refactor all models and controllers to use mongoose
- Add authentication
- Add input validation while creating/editing product details
The user can expect the following basic functionality:
- View all products (stored on database)
- Add products to a user specific cart
- checkout products in cart
- view and delete cart products
Admins can expect the following functionality:
- Access and delete products on database
- Edit product details
To be added