This project serves as the third semester exam for Alt School's Backend development with Nodejs.
The project's UI is rendered using ejs
- Clone the repository into your local environment.
- Run
npm install
to install all dependencies. - Create a .env file
- Add the following variables
- DB_URL =
Mongo db url
- PORT = 3000
- JWT_SECRET =
add a random text here
.
- DB_URL =
- Add the following variables
- Add .env to gitignore
- Run
node app.js
to get the project running. - The Entry point for the api is localhost:3000.
- On initialization, the bot returns the initial options required to perform any action.
- input 1 to get available menu. This area is where we perform actions.
- After adding items to the cart, we can checkout, view current order, view order history and cancel an order like this: