How vijayb1209/petpuja works
PetPuja is a single-restaurant ordering platform spanning customer, admin, and rider portals. Customers browse and recommend dishes, build a cart, then submit an order with delivery location and on-delivery payment; the server validates pricing and persists it. Staff manage menu/settings and order status, while riders share location and customers follow order updates and rate delivery. The README documents these capabilities, but the UI is a single unsampled HTML file and server excerpts are partial, so UI-to-API wiring and several specific server stages are not mapped beyond documented relationships.
Main entry points: index.html Customer and staff portals · server.js Order lifecycle · chat.js Chat assistant
Components 16
Customer experience
- Customer and staff portals
public/index.html - Menu and recommendations
server.js - Cart and checkout
public/index.html - Chat assistant
chat.js
Restaurant operations
- Menu and settings management
server.js
Order fulfillment
- Order lifecycle
server.js - Pricing and delivery rules
server.js - Live delivery tracking
server.js - Ratings and reviews
server.js
Platform services
- Login and role checks
server.js - HTTP API and event dispatch
server.js - SQLite state
server.js
Other components
- Customer
- Admin staff
- Rider
- Anthropic Claude API
Connections 22
- Customer → Customer and staff portals: uses
README.md - Admin staff → Customer and staff portals: uses
README.md - Rider → Customer and staff portals: uses
README.md - Customer and staff portals → Menu and recommendations: browses
README.md - Customer and staff portals → Cart and checkout: checks out
README.md - Cart and checkout → Order lifecycle: submits order
README.md - Order lifecycle → Pricing and delivery rules: recalculates totals
README.md - Customer and staff portals → Chat assistant: offers assistant
README.md - HTTP API and event dispatch → Chat assistant: handles chat
server.js - Chat assistant → Menu and recommendations: gets recommendations
server.js - Chat assistant → Anthropic Claude API: requests tools
chat.js - Anthropic Claude API → Chat assistant: returns tool calls
chat.js - Admin staff → Menu and settings management: manages menu
README.md - Admin staff → Order lifecycle: updates status
README.md - Rider → Live delivery tracking: posts location
README.md - Order lifecycle → Live delivery tracking: publishes updates
README.md - Live delivery tracking → Customer and staff portals: streams updates
README.md - Customer → Ratings and reviews: rates delivery
README.md - HTTP API and event dispatch → Login and role checks: checks roles
server.js - HTTP API and event dispatch → SQLite state: reads and writes
server.js - Order lifecycle → SQLite state: persists orders
README.md - Menu and settings management → SQLite state: stores settings
README.md