Example of simple API implmenting Vertical Slice Architecture using CQRS pattern and MediatR library.
Provides a basic CRUD operetion for websites managing.
- .NET Core 3.1
- Entity Framework Core 3.1 / SQL Server LocalDb
- Swagger
- MediatR
- FluentValidation
- NUnit, FluentAssertions, Moq & Respawn
Just build and run the project. A local database will be initialized and populated with needed data.
If you are using SQL Server 2017 and ran into issue initializing the database, please be sure to upgrade to the latest SQL Server 2017
- Start the project
- Navigate to default Swagger endpoint at https://localhost:5001/swagger/index.html
Just run the tests. A new test database will be initialized and populated with needed data.
Depending of the use case, a password protection algorithm must be implemented e.g. encrypting with user's secret like a password manager service or hashed for authentication purposes.