How pronative-ai/ai-assisted-starter-pack works
This is a product-catalog web application. A browser loads the React app, which requests product data and renders a list of cards; the ASP.NET API exposes product endpoints backed by an in-memory repository. The repository also defines the product model and repository interface. The endpoint-to-API relationship is visible in startup code, but the frontend-to-endpoint link is inferred from the HTTP route and is marked unverified because no shown file connects both components.
Main entry points: ProductList.tsx Product list · Program.cs API startup · InMemoryProductRepository.cs In-memory repository · ProductEndpoints.cs Product endpoints
Components 12
Web frontend
- React entry
src/frontend/src/main.tsx - Catalog app
src/frontend/src/App.tsx - Product list
src/frontend/src/features/products/ProductList.tsx - Product API client
src/frontend/src/features/products/api.ts - Product card
src/frontend/src/features/products/ProductCard.tsx - Product types
src/frontend/src/features/products/types.ts
Catalog API
- API startup
src/backend/Api/Program.cs - Product endpoints
src/backend/Api/Features/Products/ProductEndpoints.cs
Product data
- Repository contract
src/backend/Api/Features/Products/IProductRepository.cs - In-memory repository
src/backend/Api/Features/Products/InMemoryProductRepository.cs - Product model
src/backend/Api/Features/Products/Product.cs
Other components
- Catalog visitor
Connections 14
- Catalog visitor → React entry: opens
- React entry → Catalog app: renders
src/frontend/src/main.tsx - Catalog app → Product list: renders
src/frontend/src/App.tsx - Product list → Product API client: fetches
src/frontend/src/features/products/ProductList.tsx - Product list → Product card: renders
src/frontend/src/features/products/ProductList.tsx - Product list → Product types: uses
src/frontend/src/features/products/ProductList.tsx - Product card → Product types: uses
src/frontend/src/features/products/ProductCard.tsx - Product API client → Product endpoints: requests products
- API startup → Product endpoints: maps
src/backend/Api/Program.cs - API startup → Repository contract: registers
src/backend/Api/Program.cs - API startup → In-memory repository: selects implementation
src/backend/Api/Program.cs - Product endpoints → Repository contract: uses
src/backend/Api/Features/Products/ProductEndpoints.cs - In-memory repository → Repository contract: implements
src/backend/Api/Features/Products/InMemoryProductRepository.cs - In-memory repository → Product model: stores
src/backend/Api/Features/Products/InMemoryProductRepository.cs