Dwipraj.Template.BasicAPI.nuspec 2.0.0

dotnet new install Dwipraj.Template.BasicAPI.nuspec::2.0.0
This package contains a .NET Template Package you can call from the shell/command line.

Welcome to Basic API Template!

So, the idea behind making this template is to reduce the Boilerplate Code in case of writing dotnet core API project. This template reduces the following boilerplate.

  1. Making SQL server db with IdentityUser EntityFramework Core.
  2. Automatically add CreatedAt and UpdatedAt date on ef core's SaveChanges method (also in async version) if the entity is inherited from BaseEntity class.
  3. Redis connection for simple OTP management.
  4. Pre-onfigured Serilog, JWT Token, Swagger with JWT authentication, Custom Error Message with Model State Validation failed, CORS configuration etc.
  5. Pre-loaded with AutoMapper, FluentValidation configurations.

The things you may want to edit

There are couple of things you may want to change for your project.

  • The connection strings in appsettings.Development.
  • The jwt token configuration in appsettings.Development (Must change the key).
  • The file paths of serilog logs in appsettings file.
  • The default CreatedAt and UpdatedAt is DateTime.Now, so the best practice is to use DateTime.UtcNow.

and so on. I hope this will help many of you to kickstart a dotnet core API project. Happy Coding...

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 2,406 5/19/2021
1.0.0 535 12/11/2020