Giter Club home page Giter Club logo

cleanarchitecture's Introduction

Clean Architecture Project

This project is designed following the principles of Clean Architecture, ensuring a modular, maintainable, and testable codebase. Below is the reference structure showing how different layers and projects depend on each other.

Project References

Core

The Core layer is split into Application, Domain, and Mapper, each having specific responsibilities and dependencies.

  1. Application

    • References:
      • Domain: Contains essential business logic and domain entities.
    • Contents:
      • Bases
      • Behaviors
      • Dtos
      • Features
      • Helpers
      • Interfaces
      • Middlewares
  2. Domain

    • Contents:
      • Common
      • Entities
      • Enums
  3. Mapper

    • References:
      • Application: Contains mapping configurations to convert between different layers.
    • Contents:
      • AutoMapper profiles and configurations.

Infrastructure

The Infrastructure layer provides implementations for the interfaces defined in the Core layer, focusing on external services and database interactions.

  1. CleanArchitecture.Infrastructure

    • References:
      • Application: Uses application services and interfaces.
      • Persistence: Contains database-related services and implementations.
    • Contents:
      • Dependencies
      • Mail
      • ScheduleServices
      • Storage
      • Tokens
  2. CleanArchitecture.Persistence

    • References:
      • Application: Uses application services and interfaces.
      • Domain: Contains domain entities and logic.
    • Contents:
      • Dependencies
      • Configuration
      • Context
      • Migrations
      • Repositories
      • UnitOfWorks

Presentation

The Presentation layer contains the API project, which exposes the application's functionalities via RESTful endpoints.

  1. CleanArchitecture.Api
    • References:
      • Infrastructure: Uses infrastructure services and implementations.
      • Mapper: Uses mapping configurations.
      • Persistence: Uses database-related services and implementations.
    • Contents:
      • Connected Services
      • Dependencies
      • Properties
      • Controllers
      • wwwroot
      • appsettings.json
      • Program.cs

Package References

  • AutoMapper
  • MediatR
  • Microsoft.AspNetCore.Authentication.JwtBearer
  • Microsoft.AspNetCore.Identity.EntityFrameworkCore
  • FluentValidation
  • Npgsql
  • Serilog
  • Hangfire
  • Hangfire.PostgreSql
  • ...

Getting Started

Prerequisites

Running the Application

  1. Clone the repository:

    git clone <repository-url>
    
  2. Navigate to the project directory:

    cd <project-directory>
    

3.Build the solution:

dotnet restore
dotnet build

4.Apply migrations to the database:

dotnet ef database update  

5.Run the application:

dotnet run --project CleanArchitecture.Api ```

....................

`Let me know if you need any further changes or additions! `

cleanarchitecture's People

Contributors

yash-yadav-0 avatar

Watchers

 avatar

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.