How it-nilesh/slice-platform-starter works
This is a microfrontend/microservice proof of concept: users enter through a same-origin gateway, the shell discovers and routes to independently deployed frontends, and each frontend calls its capability API. The graph also preserves the documented slice-generation capability. Gateway and deployment files are absent from the supplied tree, and several endpoint implementations were not excerpted, so those relationships are limited to README evidence or marked unverified.
Main entry points: App.tsx Shell app · ProductEndpoints.cs Catalog API · RemoteOutlet.tsx Remote outlet · OrderEndpoints.cs Orders API
Components 26
Platform entry
- NGINX gateway
Dynamic shell
- Shell app
frontend/apps/shell/src/App.tsx - Navigation layout
frontend/apps/shell/src/components/Layout.tsx - Remote outlet
frontend/apps/shell/src/components/RemoteOutlet.tsx - Manifest loading
frontend/apps/shell/src/manifest/load.ts - Manifest validation
frontend/apps/shell/src/manifest/validate.ts - Remote federation
frontend/apps/shell/src/remotes/federation.ts - Shell telemetry
frontend/apps/shell/src/telemetry.ts
Capability frontends
- Catalog MFE
frontend/apps/mfe-catalog/src/App.tsx - Catalog API client
frontend/apps/mfe-catalog/src/api.ts - Orders MFE
frontend/apps/mfe-orders/src/App.tsx - Orders API client
frontend/apps/mfe-orders/src/api.ts - Profile MFE
frontend/apps/mfe-profile/src/App.tsx - Profile API client
frontend/apps/mfe-profile/src/api.ts
Capability APIs
- Catalog API
backend/src/Services/Catalog/Catalog.Api/Products/ProductEndpoints.cs - Product repository
backend/src/Services/Catalog/Catalog.Api/Products/InMemoryProductRepository.cs - Product model
backend/src/Services/Catalog/Catalog.Api/Products/Product.cs - Orders API
backend/src/Services/Orders/Orders.Api/Orders/OrderEndpoints.cs - Order repository
backend/src/Services/Orders/Orders.Api/Orders/InMemoryOrderRepository.cs - Order model
backend/src/Services/Orders/Orders.Api/Orders/Order.cs - Catalog service client
backend/src/Services/Orders/Orders.Api/Catalog/HttpCatalogClient.cs - Profile API
backend/src/Services/Profile/Profile.Api/Profiles/ProfileEndpoints.cs - Profile store
backend/src/Services/Profile/Profile.Api/Profiles/InMemoryProfileStore.cs - User profile model
backend/src/Services/Profile/Profile.Api/Profiles/UserProfile.cs
Slice framework
- Slice generator CLI
tools/slice/slice.mjs
Other components
- Browser
Connections 30
- Browser → NGINX gateway: requests
README.md - NGINX gateway → Shell app: serves shell
README.md - NGINX gateway → Catalog MFE: routes MFE
README.md - NGINX gateway → Orders MFE: routes MFE
README.md - NGINX gateway → Profile MFE: routes MFE
README.md - NGINX gateway → Catalog API: routes API
README.md - NGINX gateway → Orders API: routes API
README.md - NGINX gateway → Profile API: routes API
README.md - Shell app → Navigation layout: renders
frontend/apps/shell/src/App.tsx - Shell app → Remote outlet: routes to
frontend/apps/shell/src/App.tsx - Shell app → Manifest loading: loads manifest
frontend/apps/shell/src/main.tsx - Manifest loading → Manifest validation: validates
frontend/apps/shell/src/manifest/load.ts - Shell app → Remote federation: registers remotes
frontend/apps/shell/src/main.tsx - Remote outlet → Remote federation: loads remote
frontend/apps/shell/src/components/RemoteOutlet.tsx - Remote outlet → Shell telemetry: reports errors
frontend/apps/shell/src/components/RemoteOutlet.tsx - Catalog MFE → Catalog API client: requests products
frontend/apps/mfe-catalog/src/App.tsx - Orders MFE → Orders API client: places and lists
frontend/apps/mfe-orders/src/App.tsx - Profile MFE → Profile API client: loads and saves
frontend/apps/mfe-profile/src/App.tsx - Catalog API client → NGINX gateway: calls catalog API
- Orders API client → NGINX gateway: calls orders API
- Profile API client → NGINX gateway: calls profile API
- Catalog API → Product repository: uses repository
- Product repository → Product model: stores products
backend/src/Services/Catalog/Catalog.Api/Products/InMemoryProductRepository.cs - Orders API → Order repository: uses repository
- Orders API → Catalog service client: confirms prices
README.md - Order repository → Order model: stores orders
backend/src/Services/Orders/Orders.Api/Orders/InMemoryOrderRepository.cs - Catalog service client → Catalog API: fetches prices
README.md - Profile API → Profile store: uses store
- Profile store → User profile model: stores profile
backend/src/Services/Profile/Profile.Api/Profiles/InMemoryProfileStore.cs - Slice generator CLI → Catalog API: generates slices
README.md