How sujallsh/petalpath-ai-ordering works
PetalPath is a flower-shop ordering web app with product recommendations and an AI chat assistant. Customers use the public site to browse and customize bouquets, then place orders; the Express server exposes product and order APIs backed by SQLite. The chat endpoint also handles order details and tracking/cancellation requests, and can call Hugging Face for recommendation wording. The README documents the broader shopping UI, but only the chat client source was excerpted, so specific browser-side product and bouquet interactions are not mapped.
Main entry points: server.js Chat workflow · database.js Product catalog · public Shop interface · app.js Chat client
Components 10
Customer experience
- Shop interface
public - Chat client
public/app.js
Application services
- Express API
server.js - Chat workflow
server.js - Order handling
server.js
Shop data
- Product catalog
database.js - Product matching
database.js - Shop database
database.js
Other components
- Customer
- Hugging Face
Connections 13
- Customer → Shop interface: shops and customizes
README.md - Customer → Chat client: asks assistant
README.md - Chat client → Express API: POSTs chat
public/app.js - Shop interface → Express API: uses shop APIs
README.md - Express API → Product catalog: reads products
server.js - Express API → Order handling: routes orders
server.js - Chat workflow → Product matching: requests matches
server.js - Chat workflow → Product catalog: reads products
server.js - Chat workflow → Order handling: creates or cancels
server.js - Order handling → Shop database: reads and writes
database.js - Product catalog → Shop database: reads catalog
database.js - Product matching → Shop database: reads products
database.js - Chat workflow → Hugging Face: requests wording
server.js