https://github.com/quinntynebrown/mediatrandrecordtypes
An example of how you can combine MediatR and Record types to build an api in the CQRS pattern with relatively minimal code.
https://github.com/quinntynebrown/mediatrandrecordtypes
aspnetcore csharp9 entity-framework-core intergration-test mediatr netcore5 respawn value-objects
Last synced: 2 months ago
JSON representation
An example of how you can combine MediatR and Record types to build an api in the CQRS pattern with relatively minimal code.
- Host: GitHub
- URL: https://github.com/quinntynebrown/mediatrandrecordtypes
- Owner: QuinntyneBrown
- Created: 2020-12-06T19:26:25.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-31T08:16:46.000Z (about 2 years ago)
- Last Synced: 2025-03-05T10:03:14.681Z (3 months ago)
- Topics: aspnetcore, csharp9, entity-framework-core, intergration-test, mediatr, netcore5, respawn, value-objects
- Language: C#
- Homepage:
- Size: 101 KB
- Stars: 14
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MediatR and Record Types
An example of how you can combine MediatR and Record types to build an api in the CQRS pattern with relatively minimal code.
## Give a Star! :star:
If you like or are using this project to learn or start your solution, please give it a star. Thanks!
## How to run locally
1. [Download and install the .NET Core SDK](https://dotnet.microsoft.com/download)
* If you don't have `localdb` available on your system, [Download and install SQL Server Express](https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/sql-server-express-localdb)
2. Open a terminal such as **PowerShell**, **Command Prompt**, or **bash** and navigate to the `src/MediatRAndRecordTypes.Api` folder
3. Run the following `dotnet` commands:
```sh
dotnet build
dotnet run
```
3. Open your browser to: `https://localhost:5001`.## To Run the Integration tests
1. [Download and install the .NET Core SDK](https://dotnet.microsoft.com/download)
* If you don't have `localdb` available on your system, [Download and install SQL Server Express](https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/sql-server-express-localdb)
2. Open a terminal such as **PowerShell**, **Command Prompt**, or **bash** and run the following command:
`dotnet test`