Skip to content

A simple application built with .NET Core & Angular to demonstrate DDD.

Notifications You must be signed in to change notification settings

abarrak/Quotes-Application

Repository files navigation

Quotes Application

Build Status codecov License: MIT

logo

A sample .NET core API and Angular Application to demonstrate DDD patterns and techniques.

Usage

Restore the packages, then run the application project as follows:

dotnet restore
dotnet build
dotnet run --project QuotesApp.Application

APIs

A RESTful quotes API is exposed to perform all CRUD operations on Quotes resource.

Data

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

Tests

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

Docker Version

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

Lisence

MIT.

About

A simple application built with .NET Core & Angular to demonstrate DDD.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published