aspnetcore-webapi-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.
File Explorer
Download Latest Version (.zip)- dotnet-core.yml
- template.json
- Caching.csproj
- ICacheManager.cs
- ILocker.cs
- IRedisConnectionWrapper.cs
- RedisCacheManager.cs
- RedisConnectionWrapper.cs
- RedisDatabaseNumber.cs
- ServiceExtensions.cs
- ApiException.cs
- IpHelper.cs
- IEmailService.cs
- EmailService.cs
- Core.csproj
- ServiceExtensions.cs
- ApplicationDbContext.cs
- IDbContext.cs
- IMappingConfiguration.cs
- MappingEntityTypeConfiguration.cs
- NoteMap.cs
- 20201008073308_first_appDb_migration.cs
- 20201008073308_first_appDb_migration.Designer.cs
- 20201008074018_new_appDb_migration.cs
- 20201008074018_new_appDb_migration.Designer.cs
- ApplicationDbContextModelSnapshot.cs
- GenericRepository.cs
- IGenericRepository.cs
- IUnitOfWork.cs
- UnitOfWork.cs
- Data.csproj
- BsonCollectionAttribute.cs
- LoginLog.cs
- MongoBaseDocument.cs
- IMongoRepository.cs
- MongoRepository.cs
- Data.Mongo.csproj
- MongoDbOptions.cs
- ServiceExtensions.cs
- IdentityContext.cs
- 20201005130141_my_new_identity_migration.cs
- 20201005130141_my_new_identity_migration.Designer.cs
- 20201027103615_update_identity_migration.cs
- 20201027103615_update_identity_migration.Designer.cs
- IdentityContextModelSnapshot.cs
- ApplicationRole.cs
- ApplicationRoleClaim.cs
- ApplicationUser.cs
- ApplicationUserClaim.cs
- ApplicationUserLogin.cs
- ApplicationUserRole.cs
- ApplicationUserToken.cs
- DefaultRoles.cs
- DefaultSuperAdmin.cs
- AccountService.cs
- IAccountService.cs
- Identity.csproj
- ServiceExtensions.cs
- BaseEntity.cs
- Note.cs
- AuthenticationRequest.cs
- ForgotPasswordRequest.cs
- RefreshToken.cs
- RefreshTokenRequest.cs
- RegisterRequest.cs
- ResetPasswordRequest.cs
- UserDto.cs
- EmailRequest.cs
- LogDto.cs
- Roles.cs
- AuthenticationResponse.cs
- BaseResponse.cs
- JWTSettings.cs
- MailSettings.cs
- RedisSettings.cs
- Models.csproj
- LoginLogService.cs
- NoteService.cs
- IAuthenticatedUserService.cs
- ILoginLogService.cs
- INoteService.cs
- Services.csproj
- CachedAttribute.cs
- AccountController.cs
- AdminController.cs
- GraphQLController.cs
- LogController.cs
- NoteController.cs
- AppExtensions.cs
- MyNoteMutation.cs
- MyNoteQuery.cs
- NoteInputType.cs
- NoteType.cs
- GraphQLQuery.cs
- MyNoteSchema.cs
- ServiceExtensions.cs
- IApiAssemblyMarker.cs
- MappingProfiles.cs
- ErrorHandlerMiddleware.cs
- launchSettings.json
- AuthenticatedUserService.cs
- appsettings.Development.json
- appsettings.json
- Dockerfile
- Program.cs
- Startup.cs
- WebApi.csproj
- TypeControllerTesting.cs
- ApiFactory.cs
- NoteTest.cs
- UnitTests.csproj
- .dockerignore
- docker-compose.yml
- Template.WebApi.sln
- .gitattributes
- .gitignore
- LICENSE
- README.md
# Installation Guide
1. Get the code
git clone https://github.com/sinantok/aspnetcore-webapi-template
Downloads the entire project code from GitHub to your computer.
cd aspnetcore-webapi-template
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker compose -f src/docker-compose.yml up -d --build
Runs the command against the services defined in the compose file.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
3. .NET
MediumPrerequisites
โ ๏ธ This is a large repository, so this method may point to an internal sub-package rather than the actual core product. Check the full README as well.
cd src/Libraries/Caching
This project's files live in a subfolder, so move into it first.
dotnet restore
Downloads the packages the project depends on.
dotnet run
Builds the project and runs it immediately.
After dotnet run, check the message or address shown in the terminal.
// repository documentation
Was this content helpful?
(0 ratings)
