AspNetCore-DDD
Full ASP.NET Core 10.0 LTS application with DDD, CQRS and Event Sourcing
파일 탐색기
최종 버전 다운로드 (.zip)- ci.yml
- container.yml
- release.yml
- sonar.yml
- dependabot.yml
- extensions.json
- launch.json
- settings.json
- tasks.json
- architecture.png
- code-flow.jpg
- custom-repo-versus-db-context.png
- dependencies.jpg
- flowchart.png
- overview.png
- project-dependencies.jpg
- deployment.yml
- service.yml
- GenerateDataBase.sql
- AutoMapperConfig.cs
- DomainToViewModelMappingProfile.cs
- ViewModelToDomainMappingProfile.cs
- CustomerHistory.cs
- CustomerHistoryData.cs
- ICustomerAppService.cs
- CustomerAppService.cs
- CustomerViewModel.cs
- DDD.Application.csproj
- 001_Create_Table_Person.sql
- 002_Drop_Table_Person.sql
- DDD.CLI.Migration.csproj
- Program.cs
- README.md
- CommandHandler.cs
- CustomerCommandHandler.cs
- CustomerCommand.cs
- RegisterNewCustomerCommand.cs
- RemoveCustomerCommand.cs
- UpdateCustomerCommand.cs
- GlobalConstant.cs
- EntityAlreadyExistsException.cs
- EntityNotFoundException.cs
- StringExtension.cs
- ThrowIf.cs
- CustomerEventHandler.cs
- CustomerRegisteredEvent.cs
- CustomerRemovedEvent.cs
- CustomerUpdatedEvent.cs
- ICustomerRepository.cs
- IRepository.cs
- ISpecification.cs
- IUnitOfWork.cs
- IUser.cs
- Customer.cs
- NotifyInactiveUserJob.cs
- CronProvider.cs
- ICronProvider.cs
- NotifyInactiveUserConsumerModel.cs
- HashingOptions.cs
- IPasswordHasher.cs
- PasswordHasher.cs
- HttpProvider.cs
- IFooClient.cs
- IHttpProvider.cs
- Response.cs
- INotificationHub.cs
- INotificationProvider.cs
- NotificationHub.cs
- NotificationItem.cs
- NotificationProvider.cs
- HubRoutes.cs
- IMailProvider.cs
- MailAddress.cs
- MailAttachment.cs
- MailMessage.cs
- MailProvider.cs
- ExcelFormat.cs
- IOfficeProvider.cs
- OfficeProvider.cs
- IWebhookProvider.cs
- WebhookProvider.cs
- .gitkeep
- BaseSpecification.cs
- CustomerFilterPaginatedSpecification.cs
- CustomerValidation.cs
- RegisterNewCustomerCommandValidation.cs
- RemoveCustomerCommandValidation.cs
- UpdateCustomerCommandValidation.cs
- DDD.Domain.csproj
- IMediatorHandler.cs
- Command.cs
- Event.cs
- IEventStore.cs
- IHandler.cs
- Message.cs
- StoredEvent.cs
- Entity.cs
- EntityAudit.cs
- ValueObject.cs
- DomainNotification.cs
- DomainNotificationHandler.cs
- DDD.Domain.Core.csproj
- DDD.Infra.CrossCutting.Bus.csproj
- InMemoryBus.cs
- ClaimRequirement.cs
- ClaimsRequirementHandler.cs
- JwtIssuerOptions.cs
- Roles.cs
- 00000000000000_CreateIdentitySchema.cs
- AuthDbContextModelSnapshot.cs
- AuthDbContext.cs
- EmailSenderExtensions.cs
- ExternalLoginViewModel.cs
- ForgotPasswordViewModel.cs
- LoginViewModel.cs
- LoginWith2faViewModel.cs
- LoginWithRecoveryCodeViewModel.cs
- RegisterViewModel.cs
- ResetPasswordViewModel.cs
- TokenViewModel.cs
- ChangePasswordViewModel.cs
- EnableAuthenticatorViewModel.cs
- ExternalLoginsViewModel.cs
- GenerateRecoveryCodesViewModel.cs
- IndexViewModel.cs
- RemoveLoginViewModel.cs
- SetPasswordViewModel.cs
- TwoFactorAuthenticationViewModel.cs
- CreateViewModel.cs
- ApplicationUser.cs
- AspNetUser.cs
- RefreshToken.cs
- AuthEmailMessageSender.cs
- AuthSMSMessageSender.cs
- IEmailSender.cs
- IJwtFactory.cs
- ISmsSender.cs
- JwtFactory.cs
- JwtToken.cs
- DDD.Infra.CrossCutting.Identity.csproj
- DDD.Infra.CrossCutting.IoC.csproj
- NativeInjectorBootStrapper.cs
- ApplicationDbContext.cs
- EventStoreSQLContext.cs
- SqlEventStore.cs
- CustomerMap.cs
- StoredEventMap.cs
- 20161213130520_Initial.cs
- EventStoreSQLContextModelSnapshot.cs
- 20161213130431_Initial.cs
- ApplicationDbContextModelSnapshot.cs
- EventStoreSQLRepository.cs
- IEventStoreRepository.cs
- CustomerRepository.cs
- Repository.cs
- SpecificationEvaluator.cs
- UnitOfWork.cs
- DDD.Infra.Data.csproj
- AddRequiredHeaderParameter.cs
- AutoMapperSetup.cs
- AccountController.cs
- CustomerController.cs
- RoleController.cs
- AccountController.cs
- ApiController.cs
- launchSettings.json
- AuthExtension.cs
- DatabaseExtension.cs
- ErrorHandlingExtension.cs
- HashingExtension.cs
- HealthCheckExtension.cs
- HttpExtension.cs
- QuartzExtensions.cs
- SignalRExtension.cs
- SwaggerExtension.cs
- appsettings.Development.json
- appsettings.json
- appsettings.Production.json
- appsettings.Staging.json
- DDD.Services.Api.csproj
- Program.cs
- include-throw-error-steps.yml
- CustomerAppServiceTests.cs
- DDD.Application.UnitTests.csproj
- WeatherForecastControllerIntegrationTests.cs.txt
- CustomWebApplicationFactory.cs
- DDD.Services.Api.IntegrationTests.csproj
- .dockerignore
- .editorconfig
- .gitattributes
- .gitignore
- api.http
- api.md
- azure-pipelines.yml
- Containerfile
- DDD.slnx
- Directory.Build.props
- Directory.Packages.props
- docker-compose.yml
- Dockerfile
- global.json
- LICENSE
- nuget.config
- omnisharp.json
- README.md
- stylecop.json
- StyleCop.ruleset
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/ntxinh/AspNetCore-DDD
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd AspNetCore-DDD
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. Docker
쉬움 추천사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Docker Desktop 컨테이너를 빌드하고 실행하려면 필요합니다. 설치 후 실행해서 백그라운드에 켜두세요.
docker build -t aspnetcore-docker-image .
Dockerfile을 기반으로 실행 가능한 이미지를 빌드합니다.
docker run -it --rm -p 3000:80 --name aspnetcore-docker-container aspnetcore-docker-image
빌드된 이미지를 실제 컨테이너로 실행합니다.
docker run -d -p 3000:80 --name aspnetcore-docker-container aspnetcore-docker-image
빌드된 이미지를 실제 컨테이너로 실행합니다.
docker compose up -d
정의된 모든 컨테이너(서버, DB 등)를 한 번에 빌드하고 백그라운드에서 실행합니다.
docker compose ps
compose 설정 파일에 정의된 서비스들을 대상으로 명령을 실행합니다.
터미널에 docker compose ps 를 입력해 컨테이너들이 Up 상태인지 확인하세요. README에 포트 번호가 적혀있다면 브라우저에서 http://localhost:포트번호 로 접속해보세요.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
3. .NET
보통dotnet build Src/DDD.Services.Api/DDD.Services.Api.csproj
이 명령어를 터미널에 그대로 입력해 실행하세요.
dotnet run --project Src/DDD.Services.Api/DDD.Services.Api.csproj --launch-profile Dev
프로젝트를 빌드하고 바로 실행합니다.
dotnet watch --project Src/DDD.Services.Api/DDD.Services.Api.csproj run
이 명령어를 터미널에 그대로 입력해 실행하세요.
dotnet run 실행 후 터미널에 나타나는 안내 메시지나 주소를 확인하세요.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
// repository documentation
Was this content helpful?
(0 ratings)
