This repo contains the server side code for the IoT Smart Campus project. The project is part of courses ECE491 - Graduation Project I and ECE492 - Graduation Project II at Faculty of Engineering, Ain Shams University.
- Node.js v20 or later
- Yarn package manager
npm install -g yarn
- A running PostgreSQL database
-
Clone the repo
-
Install the dependencies
yarn
-
Copy the
.env.example
file to.env
and fill in the required environment variablescp .env.example .env notepad .env
-
Run the server in development mode
yarn dev
-
Run the server in production mode
yarn build yarn start
The project aims to build a smart campus that can be used to monitor the campus and provide useful information to the students and staff. The project is divided into three main parts:
- Embedded
- Image Processing
- Server
The embedded part is responsible for collecting data from the sensors and sending it to the server. The embedded part is built using Arduino and ESP8266.
The image processing part is responsible for processing the images received from the server and detecting the number of people in the image. The image processing part is built using Python and OpenCV.
The server is responsible for receiving data from the embedded part and storing it in a database. The server is also responsible for providing the data to the image processing part and the web/mobile application.