GitHub 火线榜

GitHub 火线榜 · 仓库档案

baotoq/micro-commerce

.NET 10 .NET Aspire (简介来自仓库自身文档。)

数据截至 10月27日baotoq

最好成绩

#75

被忽视榜 · 活跃却无人问津

100

累计 Star

26

Fork 总数

6

近 30 天在榜天数

项目状态许可证: 未知最近 push: 10月26日Open Issues(含 PR): 7

自 2026-10-25 起采集;未知 = 尚未采集到

把上榜徽章放进你的 README · baotoq/micro-commerce[![把上榜徽章放进你的 README](https://git.vaiox.xyz/api/badge/baotoq/micro-commerce.svg)](https://git.vaiox.xyz/zh/repo/baotoq/micro-commerce)

Badge · 任何仓库都可以挂 —— 未上榜的仓库显示灰章,上完榜会自动点亮。

<a href="https://git.vaiox.xyz/zh/repo/baotoq/micro-commerce"><img src="https://git.vaiox.xyz/api/badge/baotoq/micro-commerce.svg" alt="把上榜徽章放进你的 README" height="20"></a>

项目文档

MicroCommerce

.NET 10 · Aspire 13.6 · FastEndpoints · EF Core (PostgreSQL) · Redis

Layout

src/
  MicroCommerce.AppHost/          Aspire orchestrator (Postgres + pgAdmin, Redis + RedisInsight, API)
  MicroCommerce.ServiceDefaults/  OpenTelemetry, health checks, service discovery, resilience
  MicroCommerce.ApiService/       FastEndpoints API, EF Core DbContext, Redis distributed cache
  micro-commerce/                 Next.js frontend (pnpm), started by the AppHost with API_URL set
tests/
  MicroCommerce.UnitTests/        Pure unit tests (validators, domain)
  MicroCommerce.FunctionalTests/  In-process API via FastEndpoints.Testing + Testcontainers (Postgres, Redis)
  MicroCommerce.IntegrationTests/ Full AppHost via Aspire.Hosting.Testing
src/micro-commerce/e2e/          Playwright end-to-end tests through the browser (Keycloak sign-in, /api proxy)

Package versions are managed centrally in Directory.Packages.props.

Setup

The toolchain (.NET SDK, Aspire CLI, Node, pnpm) is pinned in mise.toml. With mise and a container runtime (Docker or Podman) installed:

mise trust && mise install
dotnet tool restore
dotnet restore
pnpm --dir src/micro-commerce install

Without mise, install the .NET 10 SDK, the Aspire CLI, Node 26 and pnpm yourself.

Run

aspire run

The API applies EF Core migrations on startup in Development. Once it's running, the API reference is at /scalar/v1 and the OpenAPI document is at /openapi/v1.json.

Tests

xUnit v3 on Microsoft.Testing.Platform (selected in global.json). Functional and integration tests need a running container runtime.

dotnet test --solution MicroCommerce.slnx
dotnet test --project tests/MicroCommerce.UnitTests

Integration tests start the AppHost with --EphemeralResources=true, so they get throwaway containers and never touch your dev data volumes.

The Playwright end-to-end suite (Chromium) runs through the browser against the whole app. It starts aspire run, or reuses one that's already running, and runs against your dev data (in CI it starts its own with throwaway containers on the same fixed ports):

pnpm --dir src/micro-commerce exec playwright install chromium   # once
pnpm --dir src/micro-commerce test:e2e

CI

GitHub Actions (.github/workflows/ci.yml) runs on pushes to master and on pull requests: build and lint, the unit, functional and integration tests, and the Playwright E2E suite. It installs the same toolchain from mise.toml.

Migrations

dotnet tool restore
dotnet ef migrations add <Name> -p src/MicroCommerce.ApiService -o Data/Migrations

当前上榜

  • 75

    被忽视榜 · 活跃却无人问津

    100 星 · 26 fork · 累计 Star(升序)

    被忽视 →

近 30 天势头

累计 Star 走势

名次走势

每日新增 Star

同榜竞速 · 名次近邻 · 被忽视

同类项目 · 共享主题

← 回到榜单

GitHub 火线榜往日榜Discover