Giter VIP home page Giter VIP logo

gagibran / book-rental-manager Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 666 KB

A simple book management system project using .NET, Angular, Docker, PostgreSQL and the CQRS architecture, alongside with some other design patterns.

License: MIT License

C# 100.00%
clean-architecture clean-code cqrs csharp dotnet postgresql xunit design-patterns domain-driven-design git solid-principles entity-framework-core docker swagger integration-testing unit-testing

book-rental-manager's Introduction

book-rental-manager

The backend of a book rental management system created with .NET, PostgreSQL, Swagger and clean architecture with CQRS.

Running the application

dotnet watch run will open up the application on http://localhost:5007/swagger/index.html.

Add migrations

dotnet ef migrations add <MigrationName> -s .\src\BookRentalManager.Api\ -p .\src\BookRentalManager.Infrastructure\ -o Data\Migrations\.

Remove migrations

dotnet ef migrations remove -s .\src\BookRentalManager.Api\ -p .\src\BookRentalManager.Infrastructure\.

Update database

dotnet ef database update -s .\src\BookRentalManager.Api\ -p .\src\BookRentalManager.Infrastructure\.

PostgreSQL

After installing PostgreSQL on your machine:

  • Windows users:
    1. Put the directory C:\Program Files\PostgreSQL\15\bin in the PATH variable;
    2. Run psql -U postgres and type in the password set up during the PostgreSQL installation;
    3. Run CREATE ROLE admin WITH CREATEDB LOGIN PASSWORD 'admin';.
  • Linux users:
    1. Run sudo su - postgres;
    2. Run psql;
    3. Run CREATE ROLE admin WITH CREATEDB LOGIN PASSWORD 'admin';.

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.