How miorena/ecommerce-angular works
Velène is a small Angular fashion storefront. A shopper browses the catalog, opens product details, adds items to a cart, and can register or log in; the cart and account state are stored in browser local storage. The graph follows the shown routing and service calls. Home-page wiring and navbar dependencies are supported by the SOURCE INDEX, but their implementation excerpts were not provided; other unsampled behavior is not inferred.
Main entry points: app.routes.ts Route configuration · cart.ts Cart service · auth.ts Auth service · product.model.ts Product model
Components 21
Application shell
- Angular bootstrap
src/main.ts - Root component
src/app/app.ts - Route configuration
src/app/app.routes.ts - Router setup
src/app/app.config.ts - Navbar
src/app/components/navbar/navbar.ts - Footer
src/app/components/footer/footer.ts
Product catalog
- Home page
src/app/pages/home/home.ts - Shop page
src/app/pages/shop/shop.ts - Product detail
src/app/pages/product-detail/product-detail.ts - Product card
src/app/components/product-card/product-card.ts - Product service
src/app/services/product.ts
Shopping cart
- Cart page
src/app/pages/cart/cart.ts - Cart service
src/app/services/cart.ts
Account and identity
- Registration page
src/app/pages/register/register.ts - Login page
src/app/pages/login/login.ts - Auth service
src/app/services/auth.ts - Auth guard
src/app/guards/auth.guard.ts
Domain models
- Product model
src/app/models/product.model.ts - User model
src/app/models/user.model.ts
Other components
- Shopper
- Browser local storage
Connections 36
- Shopper → Route configuration: opens pages
src/app/app.routes.ts - Angular bootstrap → Root component: bootstraps
src/main.ts - Angular bootstrap → Router setup: loads config
src/main.ts - Router setup → Route configuration: provides routes
src/app/app.config.ts - Route configuration → Home page: routes to
src/app/app.routes.ts - Route configuration → Shop page: routes to
src/app/app.routes.ts - Route configuration → Product detail: routes to
src/app/app.routes.ts - Route configuration → Cart page: routes to
src/app/app.routes.ts - Route configuration → Login page: routes to
src/app/app.routes.ts - Route configuration → Registration page: routes to
src/app/app.routes.ts - Root component → Navbar: renders
src/app/app.ts - Root component → Footer: renders
src/app/app.ts - Home page → Product service: loads products
src/app/pages/home/home.ts - Home page → Product card: uses cards
src/app/pages/home/home.ts - Shop page → Product service: loads products
src/app/pages/shop/shop.ts - Shop page → Product card: uses cards
src/app/pages/shop/shop.ts - Product detail → Product service: looks up product
src/app/pages/product-detail/product-detail.ts - Product detail → Cart service: adds product
src/app/pages/product-detail/product-detail.ts - Product card → Cart service: adds product
src/app/components/product-card/product-card.ts - Cart page → Cart service: reads cart
src/app/pages/cart/cart.ts - Login page → Auth service: authenticates
src/app/pages/login/login.ts - Login page → Cart service: reloads cart
src/app/pages/login/login.ts - Registration page → Auth service: registers account
src/app/pages/register/register.ts - Navbar → Auth service: uses account state
src/app/components/navbar/navbar.ts - Navbar → Cart service: uses cart state
src/app/components/navbar/navbar.ts - Auth guard → Auth service: checks identity
src/app/guards/auth.guard.ts - Product service → Product model: uses type
src/app/services/product.ts - Home page → Product model: uses type
src/app/pages/home/home.ts - Shop page → Product model: uses type
src/app/pages/shop/shop.ts - Product detail → Product model: uses type
src/app/pages/product-detail/product-detail.ts - Product card → Product model: uses type
src/app/components/product-card/product-card.ts - Cart service → Product model: stores products
src/app/services/cart.ts - Auth service → User model: uses type
src/app/services/auth.ts - Registration page → User model: creates user
src/app/pages/register/register.ts - Auth service → Browser local storage: reads and writes
src/app/services/auth.ts - Cart service → Browser local storage: reads and writes
src/app/services/cart.ts