Skip to content

Shashank1816/VendingMachine-MERN-REST-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🌐 FINAL VENDING

An API to perform vending machine operations.


🔥 How To Run

  • Open terminal and navigate to finalvending/server
  • Run npm i
  • Run npm run server
  • Open Postman Tool and verify all the endpoints on localhost:5000/ATTRIBUTE

🔥 ATTRIBUTE

  • /entermoney - End point for entering coins.
  • /selectdrinks - End point for selecting drinks and checking whether the requested drinks are available or not.
  • /pickup - End point for calculating bill.
  • /addmoney - End point for entering extra money to complete the transaction.
  • /refresh - End point for resetting the transaction by terminating it.

🔥 Features

  • Different types of coin inputs.
  • Checks availability of stocks.
  • Gives requested product and remaining change(if applicable).
  • Reset option available for vending machine supplier.

💡 Built Using

  • NODEJS
  • EXPRESSJS
  • MONGODB-ATLAS
  • POSTMAN API TESTING TOOL

💻 Screenshots

  • Enter Money


- **Select Drinks**


- **Billing Stage**


- **Response When Insufficient Amount Is Paid**


- **Adding Extra Money Which Was Asked**


- **Reset Option To Termninate Ongoing Transaction**


👨 Project Created & Maintained By


Shashank Verma

About

Backend of VendingMachine Using MongoDB and NodeJS, ExpressJS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages