Skip to content

IoT-based system to track and manage food waste in grocery stores and restaurants.

Notifications You must be signed in to change notification settings

ShubhamTiwary914/IOT-waste-management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HackIOT - UIT

IoT-based system to track and manage food waste in grocery stores and restaurants.



Contents

- Tech Stacks

- Files Structure 📂

- Setup Guide 🧰

- How to run 🧪





Tech Stacks used

Server Side script + Environment – Node.js + npm[9.5.1]
Database [NoSQL] – MongoDB + mongoose
Http Server + Routing – Express.js
Client Side Requests – Axios
IOT Side Requests - Wifi Library[Connection] + ArduinoHTTPClient[Requests] + ArduinoJSON[Packaging]




Files Structure 📂

api: server side applications [Express + Node + mongoDB + FastAPI]
web: client side application [React +_AJAX]
iot: hardware, IOTs & Sensors [ESP32]




Setup Guide 🧰

Go inside a folder using change directory

For Backend:

  cd api

For Frontend

  cd web

Then with the web or api directory --> Install the dependencies (since these do not appear here on github) you gotta install with the command:

  npm install 




How to run 🧪

To run the web-application, there are two steps

  1. First, open the terminal and run the backend server:
  ./server

It should give something like this:
image

  1. Then, in another terminal(dont close the server's one), run the react server:
  npm run dev

Note

This is only during development, once server is deployed, there is no need to run the server