Requirements: .NET SDK 6.0
Run locally with ngrok
:
make tunnel
make build
make run
make run
make deploy
docker build -t api-rest .
docker run -p 4000:4000 api-rest
make test
Tests are configured to run on multiple OS and .NET SDK versions to make sure the app is compatible across many platforms.
act -j tests
If tests are passing, the CI with GitHub Actions pushes the changes to a production branch (prod
).
dotnet new webapi -o API.Rest
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis?view=aspnetcore-6.0
https://learn.microsoft.com/en-us/dotnet/core/testing/unit-testing-with-dotnet-test
https://learn.microsoft.com/en-us/dotnet/core/docker/build-container?tabs=linux
thingsboard/thingsboard-gateway#897
https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net