This repo contains 2 main projects: Frontend (Angular application with ASP.NET backend) and DataSyncService (.NET console app). There is also shared Model project (Entity Framework model).
This is a web UI for dust measurement solution. To run it you need to have Node.js and .NET installed on your computer. Once you have those:
- change into your clone directory
cd <your-clone-folder>
- install .NET backend dependencies
dotnet restore
- change to Angular app directory
cd Frontend/ClientApp
- install Angular frontend dependencies
npm install
- go back to Frontend
cd ..
- launch the project by
dotnet run
- navigate your browser to https://localhost:5001
This project uses PostgreSQL database, therefore you need to set connection string DustDatabase
to the database instance you want to use. For local development it's recomended to use ASP.NET Core Secret manager. To do so, execute (inside Frontend project folder): dotnet user-secrets set "ConnectionStrings:DustDatabase" "<your-connection-string>"
This is a .NET console application that takes data from InfluxDB (where sensors write), aggregates it into SQL database and enhances the data with additional weather information.
The project is developed in Visual Studio Code so if you use this IDE, your life is simpler, because VS Code project settings are already included in this repo. To launch a project, just hit F5 (pick what project you want to run in VS Code's Debug tab).
Remember that whenever you pull new version, it's a good idea to reinstall backend and frontend dependencies, as someone might have changed them.
IMPORTANT
Please DON'T commit connection strings/passwords/API keys etc. into repository, because its public. Preferrably use ASP.NET Core Secret manager to store them locally.