How giuseppe-gambino/eshopfe works
EShopFE is an Angular storefront with customer, seller, and administrator interfaces. The customer path runs from browsing products through product details and cart to checkout; authentication supports account access, while seller tools manage listings and administrators manage users. Services call the configured HTTP API for authentication, catalog, cart, and user data. The tree also shows order, reseller-order, and ticket capabilities, but their runtime wiring was not sampled, so those branches are represented without guessed call edges.
Main entry points: app-routing.module.ts Route dispatch · products.service.ts Product API client · check-out.component.ts Checkout · shop-page.component.ts Product browsing
Components 23
Application and access
- Route dispatch
src/app/app-routing.module.ts - Authentication
src/app/auth/auth.service.ts - Login
src/app/auth/login/login.component.ts - Registration
src/app/auth/register/register.component.ts
Storefront and checkout
- Cart state
src/app/services/cart.service.ts - Product browsing
src/app/pages/shop-page/shop-page.component.ts - Product details
src/app/pages/shop-page/product-page/product-page.component.ts - Checkout
src/app/pages/cart/check-out/check-out.component.ts - Order management
src/app/services/order.service.ts - Payment result
src/app/pages/cart/success/success.component.ts - Failed payment
src/app/pages/cart/failed/failed.component.ts
Catalog management
- Product API client
src/app/services/products.service.ts - Product form state
src/app/services/product-form.service.ts - Product editor
src/app/pages/product-form/product-form.component.ts - Seller dashboard
src/app/pages/seller-dashboard/seller-dashboard.component.ts - Listing management
src/app/pages/seller-dashboard/manage-products/manage-products.component.ts
Accounts and operations
- User management
src/app/pages/admin-dashboard/gestione-utenti/gestione-utenti.component.ts - User API client
src/app/services/user.service.ts - Profile and history
src/app/pages/my-profile/my-profile.component.ts - Reseller orders
src/app/services/reseller-order.service.ts - Support tickets
src/app/services/ticket.service.ts
Other components
- Shopper
- Backend API
Connections 28
- Shopper → Route dispatch: navigates
src/app/app-routing.module.ts - Route dispatch → Login: routes to
src/app/app-routing.module.ts - Route dispatch → Registration: routes to
src/app/app-routing.module.ts - Route dispatch → Product browsing: routes to
src/app/app-routing.module.ts - Route dispatch → Product details: routes to
src/app/app-routing.module.ts - Route dispatch → Checkout: routes to
src/app/app-routing.module.ts - Login → Authentication: submits credentials
src/app/auth/login/login.component.ts - Registration → Authentication: registers account
src/app/auth/register/register.component.ts - Authentication → Backend API: sends auth requests
src/app/auth/auth.service.ts - Product browsing → Product API client: requests listings
src/app/pages/shop-page/shop-page.component.ts - Product browsing → Cart state: adds products
src/app/pages/shop-page/shop-page.component.ts - Product details → Product API client: loads product
src/app/pages/shop-page/product-page/product-page.component.ts - Product details → Cart state: adds product
src/app/pages/shop-page/product-page/product-page.component.ts - Cart state → Backend API: reads and updates cart
src/app/services/cart.service.ts - Checkout → Order management: initiates order
- Order management → Backend API: uses order API
- Checkout → Payment result: returns on success
- Checkout → Failed payment: returns on failure
- Product editor → Product form state: edits form state
src/app/pages/product-form/product-form.component.ts - Product editor → Product API client: saves listing
src/app/pages/product-form/product-form.component.ts - Product API client → Backend API: requests catalog data
src/app/services/products.service.ts - Seller dashboard → Listing management: opens listings
src/app/pages/seller-dashboard/seller-dashboard-routing.module.ts - Listing management → Product API client: manages listings
src/app/pages/seller-dashboard/manage-products/manage-products.component.ts - User management → User API client: manages accounts
src/app/pages/admin-dashboard/gestione-utenti/gestione-utenti.component.ts - User API client → Backend API: requests user data
src/app/services/user.service.ts - Profile and history → User API client: loads profile
- Reseller orders → Backend API: uses reseller API
- Support tickets → Backend API: uses ticket API