ASP.NET Core 3.1 WebApi REST Standards .NET Core 3.1 / Standard 2.1 Libraries
- Onion Architecture
- CQRS with MediatR Library
- Entity Framework Core - Code First
- Repository Pattern - Generic
- MediatR Pipeline Logging & Validation
- Serilog
- Swagger UI
- Response Wrappers
- Healthchecks
- Pagination
- In-Memory Caching
- Redis Caching
- In-Memory Database
- Microsoft Identity with JWT Authentication
- Role based Authorization
- Identity Seeding
- Database Seeding
- Custom Exception Handling Middlewares
- API Versioning
- Fluent Validation
- Automapper
- SMTP / Mailkit / Sendgrid Email Service
- Complete User Management Module (Register / Generate Token / Forgot Password / Confirmation Mail)
- User Auditing
update-database -Context IdentityContext
update-database -Context ApplicationDbContext
Finally, build and run the Application.
Default Roles & Credentials As soon you build and run your application, default users and roles get added to the database.
Default Roles are as follows.
-
SuperAdmin
-
Admin
-
Moderator
-
Basic Here are the credentials for the default users.
-
Email - [email protected] / Password - 123Pa$$word!
-
Email - [email protected] / Password - 123Pa$$word! You can use these default credentials to generate valid JWTokens at the ../api/account/authenticate endpoint.