How mariasofiaa/capacitacion works
Project type and purpose
• This is a single‐page application (SPA) built with Angular (v13), intended to provide a product catalog, shopping cart and checkout flow.
• It uses a lightweight JSON server (server/db.json) as a mock backend—so from an architectural standpoint it behaves like a full-stack app (frontend + API), but all business logic lives in the Angular client and data persistence is faked by JSON server.
File structure
• Top-level tooling and config: angular.json, tsconfig*.json, karma.conf.js, package.json, etc.
• “src/app” holds the Angular code, organized into:
• app.module.ts & app-routing.module.ts as root module and router
• material.module.ts bundling Angular Material imports
• pages/ folder with two feature modules:
– products (listing, details, product component, ProductService)
– checkout (cart review, details, thank-you, each in its own module + routing)
• shared/ folder with cross-cutting concerns:
– components (header, cart)
– services (DataService for API calls, ShoppingCartService for cart state)
– interfaces (Order, Store, Product)
• server/db.json with mock data, and the JSON server startup described in Ejecutar.txt.
README for additional insights
• Confirms this is purely an Angular frontend with a development server and (by extension) the JSON server.
Be as detailed as possible
• Which shared component (HeaderComponent, CartComponent) subscribes to ShoppingCartService