GithubHelp home page GithubHelp logo

babaktaremi / clean-architecture-template Goto Github PK

View Code? Open in Web Editor NEW
163.0 11.0 29.0 279 KB

๐Ÿงน Ready to develop template based on clean architecture principles. Supports ASP NET Core Identity integrated with JWE tokens, OTP authentication, stand alone plugin development, CQRS pattern using MediatR library and dynamic permission management system out of the box

License: MIT License

C# 99.14% Dockerfile 0.86%
cleancode clean-architecture template asp-net-core netcore ddd-aspnetcore microsoft-clean-architecture architecture cqrs-pattern mediator-pattern

clean-architecture-template's Introduction

Hi there! ๐Ÿ‘‹ I'm Babak Taremi

I am a passionate software engineer with a focus on C# and ASP.NET Core development. With a keen eye for detail and a strong drive to deliver high-quality solutions, I strive to create efficient, scalable, and user-friendly applications.


C#ย  .NETย  Blazorย  GraphQL HTML5 Bootstrap

SQL Serverย  Postgresย  MySQL Redis MongoDBย 

RabbitMQ Apache Kafka

GitHub Actions

Docker Kubernetes

Azure

Visual Studio Visual Studio Code

๐Ÿ“ Blogs



babaktaremi's Stats

babaktaremi's Top Languages

clean-architecture-template's People

Contributors

babaktaremi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

clean-architecture-template's Issues

Web.api doesn't run

Hi. Thank you sharing this template but I can't run Web.api.

Program.cs:66 - await context.Database.MigrateAsync();

Microsoft.Data.SqlClient.SqlException: 'A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)'

Is there any dependencies to be installed?

Thanks you.

Ef Migration

When attempting the initial migration in the project, I encountered the following warning:

The foreign key property 'UserToken.UserId1' was created in shadow state because a conflicting property with the simple name 'UserId' exists in the entity type, but is either not mapped...

Upon further investigation, I identified that the issue stems from the one-to-one relationship between the User and UserToken entities. The UserToken class extends IdentityUserToken, and within this base class, the key name is defined as "UserId" (public virtual TKey UserId { get; set; }). However, in the solution, a user can have multiple tokens, which is represented by the Tokens property (public ICollection Tokens { get; set; }).

Custom Mapping

hi, thanks for your shared repo, it's exellent,
how can i use custom mapping?

How Use Dynamic permission

hi, how used dynamic permission in this repo.?
please handle with a example.
my second question is how get payload from jwt in client?
i use blazor wasm an my code is:

private IEnumerable ParseTokenClaims(string access_token)
{

    return Jose.JWT.Payload<Dictionary<string, object>>(access_token)
        .Select(keyValue => new Claim(keyValue.Key, keyValue.Value.ToString() ?? string.Empty))
        .ToArray();
}

but dose not work .
tanx a lot

Ioc

hi,
I need Ioc in this repo, my question is why autofac not used?
for example IemailSender or ISmsSeender must register manually,
second question where is correct place of dto or viewModel? and how we can automapper like mr Ebrahimi repo?

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.