Apsitvarkom back end dotnet web API
- PostgreSQL (expects
ConnectionStrings:ApsitvarkomDatabase
in configuration) - Google Maps Geocoding API (expects
Geocoding:ApiKey
in configuration).
- Run
docker-compose -f dev-stack.yml up -d
(requires Docker)- This starts PostgreSQL on port
8001
. Database data will be saved if you shut down the stack. - This starts Adminer on port
8002
. Visithttp://localhost:8002
and login in withusername: postgres
andpassword: devpassword
. - You can also delete all of the existing dev stack (with database data) using
docker-compose -f dev-stack.yml down -v
- This starts PostgreSQL on port
- Run
dotnet user-secrets set "Geocoding:ApiKey" "<OUR_API_KEY>"
- Replace
<OUR_API_KEY>
with the development api key from our google sheet yourself and keep it as a secret. - This has to be done only once
- Replace
- Start the web API (either
dotnet run
or by clicking "Play" in Visual Studio)- Visit swagger at http://localhost:5125/swagger
- Every PR to
staging
branch runs CI automatically that builds, tests and reports coverage in the PR. - Every merge/push to
staging
branch runs CICD that automatically builds, tests, builds docker image, pushes it to an Artifact Registry and then deploys it in Cloud Run. See "Environments" on GitHub to accessstaging
environment url.