This application is built using NodeJS. Mongo DB is used for data persistence. Mongoose driver is used to interact with MongoDB collection through NodeJS code.
- Install node and Robo3t
- Clone this repo
- cd to code repo, and run
npm install, to install the dependencies - run
npm startto run the application - To run in dev mode, run
npm run dev
- src/app.js is the entry point for the application
- To find all the supported APIs, check routers/api.js
- The api.js file will redirect to relevant controller files under controllers/ folder
- models/ folder includes all the Schema. There are 4 major collections.
- MenuItem
- CartItem
- Order
- User
- New users can register
- A registered user can login
- A logged in user can get the menu
- A logged in user can add the item on menu to his cart, he can also increase or decrease the item on his cart
- A logged in user can proceed to checkout the order in his cart
- At checkout he will make the payment
- After successful payment he will get the confirmation email on his registered email.