It is a system which automates beverage vending machine. This project is created using NodeJs, ExpressJs, and MongoDB.
This project is created using NodeJs, ExpressJs and MongoDB. MongoDB Atlas is used to store/view the documents. AWS SES Email Services is used to notify the beverage machine authority when the machine is out of ingredient(s). Mocha is used to conduct several tests on the APIs.
It is a system which automates beverage vending machine. The main functions of this
system are:
This project uses NodeJs runtime environment. If you don’t have it installed in you machine. Install the latest version of NodeJs from their website
Run npm install
to install the packages.
MongoDB Atlas requires creating an account on MongoDB and then from the Main menu choose Cloud and then Atlas. You can watch this video for a step by step guide on creating a Cluster.
With the new configuration you got after the setup, replace your credentials in the configuration.json file.
You can import this collection of the API in the postman.
Run npm start
to run the project.
You can also run nodemon index.js --port=<port number> --debug
to run in debug mode or you can remove the —debug flag.
Note: nodemon is a tool that helps develop Nodejs based applications by automatically restarting the node application when file changes in the directory are detected. It will get installed along with the packages.
Run npm test
to test the project with various test cases.