Ndkkqueenie / vending_machine_api

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

Home Page:https://autumn-tree-5881.fly.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://autumn-tree-5881.fly.dev/


Languages

Language:JavaScript 88.3%Language:CSS 7.2%Language:HTML 4.5%