How mahamudu-halic/pice-pizza works
Project type and purpose
• This is a Single-Page Application (SPA) built with React and Vite.
• It implements a pizza-ordering front-end with both customer and admin interfaces.
• Key features:
• Customer flows (landing, menu browsing, order customization, payment, order history)
• Authentication (sign-in, sign-up, password reset, email verification)
• Admin flows (dashboard, orders, menu/toppings management, admin management)
• 3D pizza-ingredient assets served as static files
File structure
• Top-level:
• vite.config.js, package.json, index.html – Vite build & dev server
• public/ – static 3D models (.glb) for ingredients
• src/:
• src/main.jsx + index.css – application bootstrap
• src/App.jsx + App.css – root component & styling
• src/components/, src/screens/ – UI building blocks and routed pages
• src/admin/ – admin UI split into components, features, services, styles
• src/services/ – service layer (contexts + API calls) for auth, orders, admin
• src/modules/ – shared small wrappers (e.g., overlay)
• src/assets, src/styles, src/constant.jsx – global assets, CSS, constants
README
• It’s the default React+Vite template README.
• No backend is shipped here; all API calls go to external endpoints (not checked in).
Elements
• Clear labels: e.g., “React Router”, “AuthContext”, “AdminService”
• From Browser → Vite → React SPA
• Within SPA: UI → Service Layer → External APIs → Service Layer → UI
• Blue rectangles for UI components