BaseApi is a .NET Core 7.0 Web API project that uses Docker containers for development and deployment. It is a starting point for building a new API project. Contains both Sql and Mongo examples. The project is built using the following technologies:
docker-compose up -d
Run the Database project inside your IDE or using the following command:
dotnet run --project Database
dotnet dev-certs https --trust
Run the Api project inside your IDE or using the following command:
dotnet run --project Api
A Postman collection is available in the script
directory. This collection contains some useful requests for testing the API.
Contains integration test framework using WebApplicationFactory and NUnit.
Run the IntegrationTests project inside your IDE or using the following command:
dotnet test