Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Build from Source

To compile and run the server on your machine, follow the below steps.

dotnet 6.0

  1. Install the latest dotnet 6.0 SDK
  2. Clone the GitHub repository locally
  3. In the local repo, find the file named configuration.example.json. Make a copy of it and name it configuration.local.json.
  4. Move configuration.local.json into the src/Api directory
  5. 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