Build from Source
To compile and run the server on your machine, follow the below steps.
dotnet 6.0
- Install the latest dotnet 6.0 SDK
- Clone the GitHub repository locally
- In the local repo, find the file named
configuration.example.json
. Make a copy of it and name itconfiguration.local.json
. - Move
configuration.local.json
into thesrc/Api
directory - Open a terminal and run the below one-time setup steps:
> cd src/Api
> dotnet restore
> dotnet build
To run
> dotnet run --project ./src/Api/Api.csproj
Updating
> git fetch
> git pull
> cd `ambientweather-local-server`
> dotnet restore ./src/Api/Api.csproj
> dotnet build ./src/Api/Api.csproj
> dotnet run --project ./src/Api/Api.csproj