百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

aspnetcore-webapi-template

> 后端框架
开源

这个项目是一个 Web API 开源骨架模板,其中包括 NET 8、Web API 标准、清晰的 N 层架构、GraphQL 服务、Redis、Mssql、Mo

192 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

这个项目是一个 Web API 开源骨架模板,其中包括 NET 8、Web API 标准、清晰的 N 层架构、GraphQL 服务、Redis、Mssql、Mo

ASP.NET Core Web Api Template

This project is an Web API Open-Source Boilerplate Template that includes Net 8, Web API standards, clean n-tier architecture, GraphQL service, Redis, Mssql, Mongo databases and User Auditing (Identity) with a lot of best practices.

Releases

v1.0, v2.0, v3.0, v4.0

v4.0

Follow these steps to get started with this Boilerplate Template.

Download the Extension

Make sure Visual Studio 2019 is installed on your machine with the latest SDK. Download from Visual Studio Marketplace. Install it on your machine.

Follow these Steps to get started.

You Solution Template is Ready!

Alternatively you can also clone the Repository.

  1. Clone this Repository and Extract it to a Folder.
  2. Change the Connection Strings for the "DefaultConnection" and "IdentityConnection" in the appsettings.json
  3. Run the following commands on Powershell in the Projecct's Directory.
  • dotnet restore
  • dotnet ef database update -Context IdentityContext
  • dotnet ef database update -Context ApplicationDbContext
  • dotnet run (OR) Run the Solution using Visual Studio

Swagger

You can view endpoints with swagger

HealthCheck

You can check the status of the services with HealthCheck

Default Roles & Credentials

As soon you build and run your application, default users and roles get added to the database.

Default Roles:

  • SuperAdmin
  • Admin
  • Moderator
  • Basic

Here are the credentials for the default user.

  • Email - [email protected] / Password - 123Pa$$word!

You can use these default credentials to generate valid JWTokens at the ../api/account/authenticate endpoint.

Technologies

  • .Net 8 WebApi
  • .NET 8
  • REST Standards
  • GraphQL
  • MSSQL
  • MongoDB
  • Microsoft Identity
  • Redis
  • SeriLog(seq)
  • AutoMapper
  • Smtp / Mailkit
  • Swagger Open Api
  • Health Checks

Features

  • Net 8
  • N-Tier Architecture
  • Restful
  • GraphQl
  • Entity Framework Core - Code First
  • Repository Pattern - Generic
  • UnitOfWork
  • Redis Caching
  • Response Wrappers
  • Microsoft Identity with JWT Authentication
  • Role based Authorization
  • Identity Seeding
  • Database Seeding
  • Custom Exception Handling Middlewares
  • Serilog
  • Automapper
  • Swagger UI
  • Healthchecks
  • SMTP / Mailkit / Sendgrid Email Service
  • Complete User Management Module (Register / Generate Token / Forgot Password / Confirmation Mail)
  • User Auditing
  • Pagination
  • Refit
  • Fluent Validation
  • Unit Test
  • .Net 8 migration
  • MongoDb Operations
  • Docker Support docker-compose.yml and Dockerfile

Purpose of this Project

This template project has been developed to ensure that the necessary structures are not installed over and over again when creating each new WebAPI project. In addition, the structures that should be in a WepAPI are developed with a clean architecture and up-to-date technologies.

Prerequisites

  • Visual Studio 2019 Community and above
  • .NET 8 SDK and above
  • Basic Understanding of Architectures and Clean Code Principles

Give a Star ⭐️

If you found this Implementation helpful or used it in your Projects, do give it a star. Thanks!

Licensing

sinantok/aspnetcore-webapi-template Project is licensed with the MIT License.

About the Author

Sinan Tok

  • Github github.com/sinantok
  • Linkedin - Sinan Tok

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#asp-net-coreaspnetcoreautomapperboilerplate-template

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类后端框架
定价开源

> 相关工具

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架