How honeycomb1909/quickit-hub works
QUICKit is a grocery ordering and delivery application with customer, admin, and delivery-agent experiences. The visible workflow starts at role-based sign-in, branches to browsing and checkout or operational screens, and uses a shared API backed by product, user, and order storage. The sampled server code confirms API-to-storage behavior and order stock/credit updates. Several page implementations and client hooks were not excerpted, so their API connections are left unverified rather than presented as observed calls.
Main entry points: routes.ts API Handlers · App.tsx App Router · Auth.tsx Sign-in and Roles · storage.ts Database Storage
Components 23
Customer and Staff App
- App Router
client/src/App.tsx - Sign-in and Roles
client/src/pages/Auth.tsx - Auth API Hooks
client/src/hooks/use-auth-api.ts - Auth State
client/src/lib/auth.tsx - Product Store
client/src/pages/Store.tsx - Cart State
client/src/lib/cart.tsx - Cart Drawer
client/src/components/cart/CartDrawer.tsx - Checkout
client/src/pages/Checkout.tsx - Inventory and Orders
client/src/pages/Admin.tsx - Delivery Operations
client/src/pages/Delivery.tsx - Navigation
client/src/components/layout/Navbar.tsx - Query Client
client/src/lib/queryClient.ts - Credit Status Hook
client/src/hooks/use-credit-status.ts - Orders Hook
client/src/hooks/use-orders.ts - Products Hook
client/src/hooks/use-products.ts - Not Found
client/src/pages/not-found.tsx
API and Contracts
- HTTP Server
server/index.ts - API Handlers
server/routes.ts - API Contracts
shared/routes.ts
Persistence
- Database Storage
server/storage.ts - PostgreSQL Connection
server/db.ts - Domain Schema
shared/schema.ts
Other components
- Shopper or Staff
Connections 24
- Shopper or Staff → App Router: opens app
- App Router → Sign-in and Roles: routes to
client/src/App.tsx - App Router → Product Store: routes to
client/src/App.tsx - App Router → Checkout: routes to
client/src/App.tsx - App Router → Inventory and Orders: routes to
client/src/App.tsx - App Router → Delivery Operations: routes to
client/src/App.tsx - App Router → Not Found: falls back
client/src/App.tsx - App Router → Query Client: provides
client/src/App.tsx - Sign-in and Roles → Auth API Hooks: uses
client/src/pages/Auth.tsx - Sign-in and Roles → Auth State: uses
client/src/pages/Auth.tsx - HTTP Server → API Handlers: registers routes
server/index.ts - API Handlers → Database Storage: calls
server/routes.ts - API Handlers → API Contracts: uses API paths
server/routes.ts - Database Storage → PostgreSQL Connection: queries
server/storage.ts - Database Storage → Domain Schema: uses tables
server/storage.ts - Sign-in and Roles → API Handlers: submits credentials
- Product Store → API Handlers: requests products
- Checkout → API Handlers: submits orders
- Inventory and Orders → API Handlers: manages inventory and orders
- Delivery Operations → API Handlers: updates delivery status
- Cart State → Cart Drawer: renders cart
- Products Hook → API Handlers: requests product data
- Orders Hook → API Handlers: requests order data
- Credit Status Hook → API Handlers: requests credit status