A microservices e-commerce reference application built with ASP.NET 9
DevStore | A microservices e-commerce reference application built with ASP.NET 9
A real-world reference application powered
by desenvolvedor.io
implementing the most common and used technologies to share with the technical community the best way to develop full
and complex applications with .NET
This project was inspired by EShopOnContainers. However, the real motivation was to build it by "our way."
The EShopOnContainers is an awesome project. However, the code has some "bad smells." We found it difficult to start learning/using EShopOnContainers compared to DevStore. We like to think of the DevStore as a simplified (but no less complex) version and written with more care in code and small details. We also focused only on the Web architecture with ASP.NET.
Give a Star! :star:
If you liked the project or if DevStore is helping you, please give us a star ;)
Want to learn everything to build an app like this? :mortar_board:
Check these online courses at desenvolvedor.io (only in Portuguese)
Complete architecture implementing the most important and used concerns as:
Hexagonal Architecture
Clean Code
Clean Architecture
DDD - Domain Driven Design (Layers and Domain Model Pattern)
Domain Events
Domain Notification
Domain Validations
CQRS (Immediate Consistency)
Retry Pattern
Circuit Breaker
Unit of Work
Repository
Specification Pattern
API Gateway / BFF
Architecture Overview
The entire application is based on a unique solution with 7 APIs and one web application (MVC)
This is a reference application, each microservice has its own database and represents a bounded context (DDD concept).
There is a BFF / API Gateway to manage the Basket / Order / Payment requests and data structure from responses.
Getting Started
You can run the DevStore project on any operating system. **Make sure you have installed docker in your environment.
** (Get Docker Installation)
Clone the DevStore's repository and navigate to the /Docker folder and then:
If you just want to run the DevStore application in your Docker environment:
docker-compose up
If you want to build the local images and run the DevStore application in your Docker environment:
This docker compose will provide one database container per each API service.
docker-compose -f docker-compose-local.yml up --build
If you prefer to save resource, then use the light local docker compose:
This docker compose will provide just one database container for all API services.
docker-compose -f docker-compose-local-light.yml up --build
If you want to run locally with Visual Studio / VSCode:
You will need:
Docker
MS-SQL Server instance (or container)
RabbitMQ
So you can edit the Docker compose to just run the database and queue dependencies and save your time.
If you want Visual Studio with F5 and debug experience:
You will need at least Visual Studio 2022 and .NET 6.