How johanamisaela/m1p13mean-mahery-joanna-client works
This is an Angular ecommerce frontend. Users browse products and shops, inspect product variants and promotions, manage favorites and a cart, then access orders and chat; authenticated shop/admin users also manage shop operations. Routing selects feature views, which use core services to call the configured API. The graph preserves major feature areas and central services; unsampled feature internals are represented by their exact enclosing directories, and their connections are omitted where the excerpts do not establish them.
Main entry points: app.routes.ts Route table · product.service.ts Product API · product-detail.component.ts Product detail · home.component.ts Home & discovery
Components 24
App shell
- Route table
src/app/app.routes.ts - Main layout
src/app/core/layout/main-layout/main-layout.component.ts
Shopping
- Home & discovery
src/app/features/home/home.component.ts - Shop browsing
src/app/features/shops - Product detail
src/app/features/product-detail/product-detail.component.ts - Reviews & ratings
src/app/features/product-detail/components/product-reviews/product-reviews.component.ts - Favorites
src/app/features/favorites/favorites.component.ts - Cart & checkout
src/app/features/cart/cart.component.ts
Account
- Login & signup
src/app/features/auth - Profile
src/app/features/profil/profil.component.ts - Orders
src/app/features/orders/orders.component.ts - Messaging
src/app/features/chat/chat.component.ts
Shop operations
- Admin dashboard
src/app/features/dashboard - Shop management
src/app/features/dashboard/shop
Core services
- Authentication
src/app/core/services/auth.service.ts - Cart state & API
src/app/core/services/cart.service.ts - Product API
src/app/core/services/product.service.ts - Promotion API
src/app/core/services/promotion.service.ts - Category API
src/app/core/services/category.service.ts - Shop API
src/app/core/services/shop.service.ts - Order API
src/app/core/services/order.service.ts - Chat API
src/app/core/services/chat.service.ts
Other components
- Visitor / user
- Ecommerce API
Connections 32
- Visitor / user → Route table: navigates
src/app/app.routes.ts - Route table → Main layout: loads shell
src/app/app.routes.ts - Route table → Home & discovery: routes to
src/app/app.routes.ts - Route table → Shop browsing: routes to
src/app/app.routes.ts - Route table → Product detail: routes to
src/app/app.routes.ts - Route table → Admin dashboard: routes to
src/app/app.routes.ts - Route table → Profile: routes to
src/app/app.routes.ts - Route table → Favorites: routes to
src/app/app.routes.ts - Route table → Orders: routes to
src/app/app.routes.ts - Route table → Shop management: routes to
src/app/app.routes.ts - Route table → Cart & checkout: routes to
src/app/app.routes.ts - Route table → Messaging: routes to
src/app/app.routes.ts - Route table → Login & signup: routes to
src/app/app.routes.ts - Home & discovery → Product API: loads products
src/app/features/home/home.component.ts - Home & discovery → Category API: loads categories
src/app/features/home/home.component.ts - Home & discovery → Shop API: loads shops
src/app/features/home/home.component.ts - Product detail → Product API: loads product
src/app/features/product-detail/product-detail.component.ts - Product detail → Cart state & API: adds item
src/app/features/product-detail/product-detail.component.ts - Product detail → Promotion API: loads promotions
src/app/features/product-detail/product-detail.component.ts - Product detail → Reviews & ratings: renders reviews
src/app/features/product-detail/product-detail.component.ts - Reviews & ratings → Product API: submits reviews
src/app/features/product-detail/components/product-reviews/product-reviews.component.ts - Favorites → Product API: loads favorites
src/app/features/favorites/favorites.component.ts - Favorites → Shop API: loads shops
src/app/features/favorites/favorites.component.ts - Cart & checkout → Cart state & API: reads cart
src/app/features/cart/cart.component.ts - Login & signup → Authentication: authenticates
src/app/features/auth/signup/signup.component.ts - Messaging → Chat API: sends messages
src/app/features/chat/chat.component.ts - Messaging → Authentication: reads identity
src/app/features/chat/chat.component.ts - Messaging → Shop API: loads shop
src/app/features/chat/chat.component.ts - Authentication → Ecommerce API: HTTP auth
src/app/core/services/auth.service.ts - Cart state & API → Ecommerce API: HTTP cart
src/app/core/services/cart.service.ts - Product API → Ecommerce API: HTTP products
src/app/core/services/product.service.ts - Product API → Ecommerce API: HTTP reviews
src/app/core/services/product.service.ts