https://github.com/dudaborges/prevac
The Prevac is a real-time industrial safety system that uses a sophisticated network of IoT sensors for continuous temperature and pressure monitoring.
https://github.com/dudaborges/prevac
docker fastapi postgresql python react tortoise-orm
Last synced: 9 months ago
JSON representation
The Prevac is a real-time industrial safety system that uses a sophisticated network of IoT sensors for continuous temperature and pressure monitoring.
- Host: GitHub
- URL: https://github.com/dudaborges/prevac
- Owner: dudaborges
- Created: 2024-06-29T21:17:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-03T22:09:40.000Z (over 1 year ago)
- Last Synced: 2025-01-27T23:48:57.192Z (11 months ago)
- Topics: docker, fastapi, postgresql, python, react, tortoise-orm
- Language: JavaScript
- Homepage:
- Size: 19.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prevac
The **Prevac** is a real-time industrial safety system that uses a sophisticated network of IoT sensors for continuous temperature and pressure monitoring. The system provides an intuitive dashboard for monitoring, instant alerts in case of anomalies, detailed reports, and automatic shutdown in critical situations, ensuring compliance with regulatory standards.
### Features
- **Continuous Monitoring:** Track safety in real-time through an intuitive dashboard.
- **Instant Alerts:** Receive immediate notifications upon detecting anomalies.
- **Risk Reports:** Detailed reports on the presence of people in hazardous areas.
- **Regulatory Compliance:** Alignment with regulatory standards.
## Main Technologies
- **Python** v3.9.13
- **FastAPI** v0.97.0
- **React JS** v18.0.0
- **Node.js** v20.11.1
- **Docker** v20.10.11
## How to Run the Project
- To run the project, you need to have Docker Desktop installed on your machine.
Build the images and spin up the containers:
```
$ docker-compose up -d --build
```
Create a local database:
```
$ docker-compose exec backend aerich init -t src.database.config.TORTOISE_ORM
```
```
$ docker-compose exec backend aerich init-db
```
Remove the comments from the Dockerfile located at services/backend/Dockerfile and run the containers again
```
$ docker-compose up -d --build
```
Acesse http://localhost:3000 para visualizar no navegador o frontend.
Acesse http://localhost:5000/docs para visualizar no navegador a API.
## Models and Migrations
If you make changes to the model, run this command to update the database:
```
$ docker-compose exec backend aerich migrate
```
```
$ docker-compose exec backend aerich upgrade
```
# Login credentials
- Administrator User:
Email: teste@prevac.com
Password: stefani123
- Regular user:
Email: mariaeduarda@prevac.com
Password: maria123