Solution to Xrysi Eukeria's ratings coding challenge.
To start Postgres:
docker-compose up
and to start the api:
dotnet run --project .\src\Xe.Ratings.API\
To simulate signed-in users the API is checking for the presence of a valid JWT tokens.
To generate one:
cd .\src\Xe.Ratings.API\ && dotnet user-jwts create
To run the tests (requires Docker):
dotnet test
If you're using Thunder Client there's also an HTTP request collection in ./thunder-tests
- ErrorOr: A discriminated union of an error or a result.
- Npgsql: Data access for PostgreSql.
- Dapper: A Micro-ORM.
- Xunit: for testing.
- Testcontainers.PostgreSql: Docker Testcontainer for PostgreSql.