An open API service indexing awesome lists of open source software.

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.

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