How kny6712/five-orites-scoop-v1 works
Five-orites Scoop is an Ionic/Angular storefront and admin console for selling ice cream with live inventory and order tracking. Customers authenticate, browse and select products, build a cart, provide delivery details and an optional voucher, then place an order whose status they can track. Admins manage inventory, fulfill orders and review sales analytics. The README documents client-side stock adjustment and rollback, capped analytics queries and in-app-only notifications; sampled excerpts confirm key service responsibilities, while some feature-page internals were not inspected.
Main entry points: app.routes.ts Route access · order.service.ts Order service · inventory.service.ts Inventory service · product-detail.page.ts Product details
Components 26
Customer storefront
- Route access
src/app/app.routes.ts - Sign-in UI
src/app/features/auth/auth.page.ts - Product catalog
src/app/features/products/products.page.ts - Product details
src/app/features/products/product-detail/product-detail.page.ts - Cart checkout
src/app/features/cart/cart.page.ts - Order history
src/app/features/orders/orders.page.ts - Order tracker
src/app/features/orders/order-tracker/order-tracker.page.ts - Customer dashboard
src/app/features/dashboard/dashboard.page.ts
Store operations
- Inventory manager
src/app/admin/inventory/inventory.page.ts - Order fulfillment
src/app/admin/orders/admin-orders.page.ts - Sales analytics
src/app/admin/analytics/analytics.page.ts
Domain services
- Authentication
src/app/core/services/auth.service.ts - Cart state
src/app/core/services/cart.service.ts - Inventory service
src/app/core/services/inventory.service.ts - Order service
src/app/core/services/order.service.ts - Voucher service
src/app/core/services/voucher.service.ts - Address book
src/app/core/services/address.service.ts - Wishlist
src/app/core/services/wishlist.service.ts - Product reviews
src/app/core/services/review.service.ts - Notifications
src/app/core/services/notification.service.ts - Pricing matrix
src/app/core/config/pricing.config.ts - Order and product models
src/app/core/models/order.model.ts
Firebase data
- Firebase Auth
- Cloud Firestore
Other components
- Customer
- Admin
Connections 44
- Customer → Route access: opens app
- Admin → Route access: opens app
- Route access → Sign-in UI: routes to
src/app/app.routes.ts - Route access → Product catalog: routes to
src/app/app.routes.ts - Route access → Product details: routes to
src/app/app.routes.ts - Route access → Cart checkout: routes to
src/app/app.routes.ts - Route access → Order history: routes to
src/app/app.routes.ts - Route access → Order tracker: routes to
src/app/app.routes.ts - Route access → Customer dashboard: routes to
src/app/app.routes.ts - Route access → Inventory manager: admin route
src/app/app.routes.ts - Route access → Order fulfillment: admin route
src/app/app.routes.ts - Route access → Sales analytics: admin route
src/app/app.routes.ts - Sign-in UI → Authentication: uses
src/app/features/auth/auth.page.ts - Product catalog → Inventory service: loads products
src/app/features/products/products.page.ts - Product catalog → Wishlist: uses
src/app/features/products/products.page.ts - Product details → Inventory service: loads product
src/app/features/products/product-detail/product-detail.page.ts - Product details → Cart state: adds item
src/app/features/products/product-detail/product-detail.page.ts - Product details → Product reviews: uses
src/app/features/products/product-detail/product-detail.page.ts - Product details → Wishlist: uses
src/app/features/products/product-detail/product-detail.page.ts - Cart checkout → Cart state: edits cart
src/app/features/cart/cart.page.ts - Cart checkout → Order service: places order
src/app/features/cart/cart.page.ts - Cart checkout → Address book: uses
src/app/features/cart/cart.page.ts - Cart checkout → Voucher service: checks voucher
src/app/features/cart/cart.page.ts - Order history → Order service: loads orders
src/app/features/orders/orders.page.ts - Order tracker → Order service: tracks order
- Order fulfillment → Order service: updates orders
src/app/admin/orders/admin-orders.page.ts - Order fulfillment → Notifications: invokes
src/app/admin/orders/admin-orders.page.ts - Inventory manager → Inventory service: manages stock
- Sales analytics → Order service: reads order totals
- Customer dashboard → Authentication: reads user
src/app/features/dashboard/dashboard.page.ts - Customer dashboard → Inventory service: loads stock
src/app/features/dashboard/dashboard.page.ts - Customer dashboard → Order service: loads totals
src/app/features/dashboard/dashboard.page.ts - Order service → Cart state: clears after order
src/app/core/services/order.service.ts - Order service → Inventory service: adjusts stock
src/app/core/services/order.service.ts - Order service → Voucher service: resolves code
src/app/core/services/order.service.ts - Order service → Pricing matrix: gets prices
src/app/core/services/order.service.ts - Order service → Order and product models: creates orders
src/app/core/services/order.service.ts - Authentication → Firebase Auth: authenticates
src/app/core/services/auth.service.ts - Authentication → Cloud Firestore: reads user profile
src/app/core/services/auth.service.ts - Inventory service → Cloud Firestore: reads and writes
src/app/core/services/inventory.service.ts - Order service → Cloud Firestore: reads and writes
src/app/core/services/order.service.ts - Product reviews → Cloud Firestore: reads and writes
src/app/core/services/review.service.ts - Voucher service → Cloud Firestore: resolves voucher
- Notifications → Customer: shows in-app notice