NetCoreMediatrSample
A project that exemplifies a well-considered architectural approach that combines the advantages of both monolithic and microservices paradigms, fostering modularity, maintainability, and scalability.
File Explorer
Download Latest Version (.zip)- UserController.cs
- UserTaskController.cs
- UpdateUserTaskBodyDto.cs
- launchSettings.json
- .dockerignore
- Api.csproj
- appsettings.json
- Dockerfile
- Program.cs
- GetUserIntegrationTests.cs
- Api.IntegrationTests.csproj
- BaseIntegrationTest.cs
- GlobalUsings.cs
- IntegrationTestApiFactory.cs
- launchSettings.json
- .dockerignore
- appsettings.json
- BackgroundWorker.csproj
- Dockerfile
- Program.cs
- CreateUser.cs
- DeleteUser.cs
- GetUser.cs
- CreateUserTask.cs
- DeleteUserTask.cs
- UpdateUserTask.cs
- GetUserTask.cs
- GetUserTasksCreatedByUser.cs
- Components.csproj
- ComponentsExtensions.cs
- GetUserUnitTests.cs
- BaseUnitTest.cs
- Components.UnitTests.csproj
- GlobalUsings.cs
- 20230905193848_Init.cs
- 20230905193848_Init.Designer.cs
- DatabaseContextModelSnapshot.cs
- TaskStatusEnum.cs
- TaskStatusRef.cs
- TaskStatusRefContext.cs
- UserStatusEnum.cs
- UserStatusRef.cs
- UserStatusRefContext.cs
- User.cs
- UserContext.cs
- UserTask.cs
- UserTaskContext.cs
- BaseModel.cs
- BaseModelEnum.cs
- BaseModelEnumExtensions.cs
- BaseModelExtensions.cs
- DatabaseContext.cs
- DatabaseContextFactory.cs
- DataModel.csproj
- DataModelExtensions.cs
- DataModelOptions.cs
- LogUserCreatedEventHandler.cs
- LogUserDeletedEventHandler.cs
- NotifyAssignedUserEventHandler.cs
- EventHandlers.csproj
- EventHandlersExtensions.cs
- NotifyAssignedUserEventHandlerTests.cs
- BaseUnitTest.cs
- EventHandlers.UnitTests.csproj
- GlobalUsings.cs
- UserCreatedEvent.cs
- UserDeletedEvent.cs
- UserTaskCreatedEvent.cs
- UserTaskDeletedEvent.cs
- UserTaskUpdatedEvent.cs
- Events.csproj
- AuthenticationExtensions.cs
- HangfireExtensions.cs
- HangfireJobBus.cs
- BackgroundJobOptions.cs
- IBackgroundJobBus.cs
- CorsExtensions.cs
- CommandBus.cs
- ICommand.cs
- ICommandBus.cs
- ICommandHandler.cs
- Event.cs
- EventBus.cs
- IEvent.cs
- IEventBus.cs
- IEventHandler.cs
- IQuery.cs
- IQueryBus.cs
- IQueryHandler.cs
- QueryBus.cs
- CQRSExtensions.cs
- ValidationBehavior.cs
- BadRequestException.cs
- ForbiddenException.cs
- NotFoundException.cs
- NotSupportedException.cs
- ExceptionHandlingExtensions.cs
- ExceptionHandlingMiddleware.cs
- HealthChecksExtensions.cs
- InvalidStronglyTypedIdException.cs
- StronglyTypedIdBaseEntity.cs
- StronglyTypedIdConversions.cs
- StronglyTypedIdConverter.cs
- StronglyTypedIdHelper.cs
- StronglyTypedIdJsonConverterFactory.cs
- StronglyTypedIdsExtensions.cs
- StronglyTypedIdValidator.cs
- AuthOperationsFilter.cs
- StronglyTypedIdSchemaFilter.cs
- SwaggerExtensions.cs
- Infrastructure.csproj
- INotificationService.cs
- NotificationService.cs
- NotificationService.csproj
- .gitignore
- docker-compose.yaml
- LICENSE
- README.md
- SampleApplication.sln
# Installation Guide
1. Get the code
git clone https://github.com/madslundt/NetCoreMediatrSample
Downloads the entire project code from GitHub to your computer.
cd NetCoreMediatrSample
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 up
Runs the command against the services defined in the compose file.
docker-compose start db
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.
Pulled directly from this repo's README.
3. .NET
MediumPrerequisites
dotnet ef database update
Type this command into your terminal and run it.
After dotnet run, check the message or address shown in the terminal.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
