A sample .NET core API and Angular Application to demonstrate DDD patterns and techniques.
Restore the packages, then run the application project as follows:
dotnet restore
dotnet build
dotnet run --project QuotesApp.Application
A RESTful quotes API is exposed to perform all CRUD operations on Quotes
resource.
The data access layer is implemented by EF Core, with SQLite provider.
Add New migration:
dotnet ef migrations add AddXXX --project QuotesApp.Infrastructure --startup-project QuotesApp.Application
Reflect on the database:
dotnet ef database update --project QuotesApp.Infrastructure --startup-project QuotesApp.Application
To drop the database, use:
dotnet ef database drop --project QuotesApp.Infrastructure --startup-project QuotesApp.Application
Remove migrations by:
dotnet ef migrations remove --project QuotesApp.Infrastructure --startup-project QuotesApp.Application
Unit and integration tests suite is provided in QuotesApp.Tests
project.
dotnet test
Run the tests with the coverage report as follows:
dotnet test /p:CollectCoverage=true
A containerized verison of the application is availabile in docker hub.
Pull the image:
docker pull abarrak/quotes-app
Run within a container:
docker container run --publish 8080:80 --name quotes-app abarrak/quotes-app
MIT.