Giter VIP home page Giter VIP logo

quotes-application's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.