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.
파일 탐색기
최종 버전 다운로드 (.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
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/sinantok/aspnetcore-webapi-template
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd aspnetcore-webapi-template
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. Docker
쉬움 추천사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Docker Desktop 컨테이너를 빌드하고 실행하려면 필요합니다. 설치 후 실행해서 백그라운드에 켜두세요.
docker compose -f src/docker-compose.yml up -d --build
compose 설정 파일에 정의된 서비스들을 대상으로 명령을 실행합니다.
터미널에 docker compose ps 를 입력해 컨테이너들이 Up 상태인지 확인하세요. README에 포트 번호가 적혀있다면 브라우저에서 http://localhost:포트번호 로 접속해보세요.
3. .NET
보통
⚠️ 이 프로젝트는 규모가 큰 저장소라, 이 방법이 실제 핵심 제품이 아니라 내부 하위 패키지를 가리키는 것일 수 있습니다. README 전체를 함께 확인해보세요.
cd src/Libraries/Caching
이 프로젝트의 관련 파일이 하위 폴더 안에 있어서, 먼저 그 폴더로 이동합니다.
dotnet restore
프로젝트에 필요한 패키지를 내려받습니다.
dotnet run
프로젝트를 빌드하고 바로 실행합니다.
dotnet run 실행 후 터미널에 나타나는 안내 메시지나 주소를 확인하세요.
// repository documentation
Was this content helpful?
(0 ratings)
