The Sistema de Monitoramento de Insumos of the Universidade de Brasília (SMI-UnB), is a web application developed to assist in the monitoring and management of Universidade de Brasília's power consumption and distribution.
The idea is to monitor, collect and display data of each campus power supply, allowing a much better comprehension of the usage patterns and energy quality received from the distribution station.
The system is divided into three main layers:
- the presentation layer, which holds the front-end of the application, including the dashboard for researchers.
- the master layer, which is responsible for all the data management, data processing, and database redundancy.
- the slave layer is responsible for the communication with energy transductors and data collection.
Instal Yarn using this link, and:
yarn install
yarn start
yarn lint
yarn build
First install Docker following the instructions according to your Operational System, here.
After installing Docker, you can install Docker-Compose, also according to your Operational System here.
If you have already lifted up SMI Slave's API. All you have to do is:
sudo docker-compose up
If you haven't you must create the docker network needed for Master to connect. As:
sudo docker network create smi-network
and you can lift up you Master environment with:
sudo docker-compose up
And, that's it! You have SMI up and running!