Skip to content

Example of simple API implmenting Vertical Slice Architecture using CQRS pattern and MediatR library.

Notifications You must be signed in to change notification settings

mariozee/Webmaster

Repository files navigation

Webmaster

Example of simple API implmenting Vertical Slice Architecture using CQRS pattern and MediatR library.

Provides a basic CRUD operetion for websites managing.

Technologies

  • .NET Core 3.1
  • Entity Framework Core 3.1 / SQL Server LocalDb
  • Swagger
  • MediatR
  • FluentValidation
  • NUnit, FluentAssertions, Moq & Respawn

Getting Started

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

Swagger UI

  1. Start the project
  2. Navigate to default Swagger endpoint at https://localhost:5001/swagger/index.html

Tests

Just run the tests. A new test database will be initialized and populated with needed data.

Work needed!

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.

About

Example of simple API implmenting Vertical Slice Architecture using CQRS pattern and MediatR library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages