Skip to content

This project was made to simulate on how vending machine works. Allowing users with a “seller” role to add, update or remove products, while users with a “buyer” role can deposit coins into the machine and make purchases.. Frontend is made with React (JavaScript) and backend is made with Nodejs, Express and MongoDB

Notifications You must be signed in to change notification settings

Ndkkqueenie/vending_machine_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

About

This project was made to simulate on how vending machine works. The backend is the API for the vending machinesee endpoint docs here, allowing users with a “seller” role to add, update or remove products, while users with a “buyer” role can deposit coins into the machine and make purchases.. Frontend is made with React (JavaScript) and backend is made using Nodejs, Express and MongoDB.

See Live demo here.

Run backend project

  1. Change directory to backend and install required packages:
    cd backend
    npm install
  1. There is config folder with configuration. Be sure to change them according to your running environment.

  2. Now you can run you application. To run it in dev mode:

    npm run dev
  3. To run the backend test:

    npm run test
  4. If everything goes well the backend is running port at 3005, you can visit your application through http://localhost:3005

Run Frontend App

  1. Change directory to frontend application:
    cd frontend
  1. Install dependencies
    npm install
  1. Run your application:
    npm start

About

This project was made to simulate on how vending machine works. Allowing users with a “seller” role to add, update or remove products, while users with a “buyer” role can deposit coins into the machine and make purchases.. Frontend is made with React (JavaScript) and backend is made with Nodejs, Express and MongoDB

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published