This template provides a foundation for building a DevInsightForge Web API project using C#.
- Identity: DevInsightForge.Templates.Api
- License: MIT
This template serves as a starting point for a DevInsightForge Web API project. It includes essential structures and configurations to kickstart your development process.
- ASP.NET Core Web API project
- Clean architecture pattern
- EFCore with SqlServer
- Domain Driven Design
- Repository pattern
- JWT Authentication
- Fluent Validation
- Mapster
To install the DevInsightForge Web API Template, use the following command:
dotnet new install DevInsightForge.Templates.Api
To create a new solution using the DevInsightForge Web API Template, use the following command:
dotnet new devforgeapi -n YourSolutionNameHere
To execute migration commands, select [YourProjectName].Infrastructure project in Package Manager Console first.
Run this to apply migrations first time.
Update-Database
If runs into any error even with infra as selected project, remove Migration directory from Infrastructure and execute add new migration command.
Add-Migration [Your-Migration-Name]