百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
E

EcommerceDDD

> 前端框架
开源

展示了基于领域的设计、微服务、事件源、CQRS 和 Angular 的实验性全栈应用。

386 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

展示了基于领域的设计、微服务、事件源、CQRS 和 Angular 的实验性全栈应用。

EcommerceDDD

An experimental full-stack application showcasing cutting-edge technologies and architectural patterns for building scalable e-commerce systems.

[](https://opensource.org/licenses/MIT)

⭐ If you find this project useful, please consider giving it a star! It helps others discover the project.

️ Architecture

High-Level Overview

Detailed Architecture


Project Structure

…
Layer
Core Defines building blocks and abstractions used across all projects. Highly abstract with no implementations.
Core.Infrastructure Shared infrastructure abstractions and implementations for all microservices.
Crosscutting Projects that cross-cut all microservices: IdentityServer, API Gateway, and ServiceClients with Kiota-generated HTTP clients.
Services Backend microservices built with a vertically sliced structure.
SPA Lightweight Angular-based Single Page Application.

Microservice Structure

Each microservice follows a clean vertical slice architecture.

├── EcommerceDDD.ProductCatalog
│   ├── API              # RESTful endpoints
│   ├── Application      # Use cases, commands & queries
│   ├── Domain           # Aggregates, entities, domain events
│   └── Infrastructure   # Data persistence & external integrations

Service Communication

External Communication (SPA → Backend)

  • Koalesce.OpenAPI aggregates all OpenAPI definitions exposed in the API Gateway.
  • Kiota generates typed TypeScript clients from this unified spec.
  • The Angular SPA communicates through the API Gateway using the clients.

Internal Communication (Service-to-Service)

Microservices communicate directly using Kiota-generated typed HTTP clients.


️ Tech Stack

Backend

Technology Version
.NET 10
C# 12
Koalesce 1.0.0-beta.10
Ocelot 25.0.0
Marten 9.30.0
WolverineFx (Marten + Kafka) 6.30.3
Confluent Kafka 2.15.0
Entity Framework Core 10.0.11
Npgsql (PostgreSQL) 10.0.3
Duende IdentityServer 8.0.6
ASP.NET Data Protection 10.0.11
Polly 8.7.0
Microsoft Kiota 2.0.0
OpenTelemetry 1.18.0
xUnit 2.9.3
NSubstitute 6.2.0
Swashbuckle.AspNetCore.SwaggerUI 10.2.3
FluentResults 4.0.0

Frontend

Technology Version
angular 21.1.3
typescript 5.9.3
jest 30.2.0
@ng-bootstrap/ng-bootstrap 20.0.0
bootstrap 5.3.5
@fortawesome/angular-fontawesome 4.0.0
ngx-toastr 19.0.0

Getting Started

Running with Docker

Backend only — starts all microservices, databases, Kafka, and infrastructure:

bash
docker compose up

Backend + Frontend — also builds and serves the Angular SPA at http://localhost:4200:

bash
docker compose --profile frontend up

Tip: You can also set docker-compose.dcproj as the startup project in Visual Studio for debugging.

Running the SPA locally (with hot-reload)

If you prefer running the frontend outside Docker for development, start the backend with docker compose up, then:

bash
cd src/EcommerceDDD.Spa
npm install
ng serve

The app will be available at http://localhost:4200.

Advanced: Regenerating Kiota Clients

Tool services are defined in docker-compose.override.yml, which Docker Compose loads automatically alongside docker-compose.yml. After the main stack is running, use one of the commands below:

Command What it generates
docker compose --profile tools run regenerate-clients Both backend and frontend clients
docker compose --profile tools run regenerate-backend-clients Backend C# clients only (ServiceClients/Kiota/)
docker compose --profile tools run regenerate-frontend-clients Frontend TypeScript client only (EcommerceDDD.Spa/src/app/clients/)

Support & Contributing

  • Issues: Report bugs or request features via GitHub Issues.
  • Contributing: Contributions are welcome! Please read CONTRIBUTING.md before submitting PRs.

License

This project is licensed under the terms of the LICENSE file.


Made with ❤️ by Felipe Henrique

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#angularclean-architecturecqrsddd

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架