How maram0103/glow_skin_front works
GlowSkin is an Angular storefront and order-management frontend. Shoppers browse and search products, inspect details, manage a cart, and proceed through order creation; staff use role-specific preparation, delivery, and administration screens. The frontend delegates catalog, account, and order operations to an external API, while authentication state is stored locally. Routes and the admin component are excerpted; several other component-to-service relationships are supported only by the source index, so those links are marked unverified rather than asserted as confirmed calls.
Main entry points: app.routes.ts Route registry · auth-service.ts Authentication service · admin.ts Admin console · produit-service.ts Product service
Components 22
Storefront
- Route registry
src/app/app.routes.ts - Navigation and search
src/app/components/navbar/navbar.ts - Product catalogue
src/app/components/produits/catalogue/catalogue.ts - Product detail
src/app/components/produits/produit-detail/produit-detail.ts - Shopping cart
src/app/components/panier/panier.ts - Sign in
src/app/components/login/login.ts - Registration
src/app/components/register/register.ts - Role guard
src/app/Gaurds/auth-guard.ts
Order fulfillment
- Preparation dashboard
src/app/dashboards/preparateur-dashboard/preparateur-dashboard.ts - Delivery dashboard
src/app/dashboards/livreur-dashboard/livreur-dashboard.ts
Administration
- Admin console
src/app/components/admin/admin.ts
Domain and services
- Authentication service
src/app/services/auth-service.ts - Product service
src/app/services/produit-service.ts - Category service
src/app/services/categorie-service.ts - Order service
src/app/services/commande-service.ts - Cart state
src/app/services/panier-service.ts - User service
src/app/services/user-service.ts - Domain models
src/app/models - API configuration
src/app/environments/environment.ts
Other components
- Shopper
- Backend API
- Browser local storage
Connections 42
- Shopper → Route registry: opens app
src/app/app.routes.ts - Route registry → Product catalogue: routes to
src/app/app.routes.ts - Route registry → Product detail: routes to
src/app/app.routes.ts - Route registry → Shopping cart: routes to
src/app/app.routes.ts - Route registry → Sign in: routes to
src/app/app.routes.ts - Route registry → Registration: routes to
src/app/app.routes.ts - Route registry → Preparation dashboard: routes to
src/app/app.routes.ts - Route registry → Delivery dashboard: routes to
src/app/app.routes.ts - Route registry → Admin console: routes to
src/app/app.routes.ts - Route registry → Role guard: guards with
src/app/app.routes.ts - Navigation and search → Product service: searches
src/app/components/navbar/navbar.ts - Navigation and search → Cart state: adds dropped items
src/app/components/navbar/navbar.ts - Navigation and search → Authentication service: checks session
src/app/components/navbar/navbar.ts - Sign in → Authentication service: authenticates
src/app/components/login/login.ts - Registration → Authentication service: registers with
src/app/components/register/register.ts - Role guard → Authentication service: checks role
- Authentication service → Browser local storage: reads and writes
src/app/services/auth-service.ts - Admin console → Order service: loads and updates
src/app/components/admin/admin.ts - Admin console → Product service: manages products
src/app/components/admin/admin.ts - Admin console → Category service: manages categories
src/app/components/admin/admin.ts - Admin console → User service: manages personnel
src/app/components/admin/admin.ts - Admin console → Authentication service: logs out through
src/app/components/admin/admin.ts - Product catalogue → Product service: loads products
src/app/components/produits/catalogue/catalogue.ts - Product catalogue → Category service: loads categories
src/app/components/produits/catalogue/catalogue.ts - Product catalogue → Cart state: adds items
src/app/components/produits/catalogue/catalogue.ts - Product detail → Product service: loads product
src/app/components/produits/produit-detail/produit-detail.ts - Product detail → Cart state: adds item
src/app/components/produits/produit-detail/produit-detail.ts - Shopping cart → Cart state: uses cart
src/app/components/panier/panier.ts - Shopping cart → Order service: creates order
src/app/components/panier/panier.ts - Shopping cart → Authentication service: checks account
src/app/components/panier/panier.ts - Preparation dashboard → Order service: handles preparation
src/app/dashboards/preparateur-dashboard/preparateur-dashboard.ts - Delivery dashboard → Order service: handles delivery
src/app/dashboards/livreur-dashboard/livreur-dashboard.ts - Product service → Backend API: requests products
src/app/services/produit-service.ts - Order service → Backend API: requests orders
src/app/services/commande-service.ts - Authentication service → Backend API: auth requests
src/app/services/auth-service.ts - Category service → Backend API: category requests
- User service → Backend API: user requests
- Product service → API configuration: uses API config
src/app/services/produit-service.ts - Order service → API configuration: uses API config
src/app/services/commande-service.ts - Authentication service → API configuration: uses API config
src/app/services/auth-service.ts - Category service → API configuration: uses API config
src/app/services/categorie-service.ts - User service → API configuration: uses API config
src/app/services/user-service.ts