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]
api: server side applications [Express + Node + mongoDB + FastAPI]
web: client side application [React +_AJAX]
iot: hardware, IOTs & Sensors [ESP32]
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
To run the web-application, there are two steps
- First, open the terminal and run the backend server:
./server
- 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