Skip to content

SunSync

Marco Soldera edited this page May 13, 2024 · 9 revisions
Morandin Marco 228160 - Soldera Marco 226651

Startup

To run the project docker and docker-compose are needed. First of all you need to enter main-service and importer folders and do the same steps to install npm dependencies with:

npm install

Then in the main folder of the project run

docker compose up

to start all the services (MongoDB is remote; API service, front-end, importer and data simulator with Node-RED are local).

Services can be found at the following links:

In alternative the deployed project can be found at this link.


Usage

API

The API Service can be used from localhost or remote at this link. Swagger is available at this link to learn the structure of our API. There are 6 resources that can be caught:

  • PvInfo: resource for employee or admin about PV Systems installed;
  • PvData: resource for employee or admin about production data of the PV Systems;
  • WsInfo: resource for employee or admin about Weather Stations used;
  • WsData: resource for employee or admin about Weather Data of the Stations;
  • User: resource for admin, login and change password to manage users;
  • Reports: resource for everyone to get statistics about production on the PV Systems of the owner.

Web-App

Clone this wiki locally