How dhanesh10war/invoice-app works
JCI Receipt WhatsApp Tool is a web app for creating and sending cash receipts. An administrator opens the dashboard, connects a WhatsApp account by QR, enters receipt details, then generates a receipt that is saved and sent to recipients. The backend also supports receipt history, contacts, preview, deletion, SVG viewing and PDF output. Source excerpts show the API orchestration and core services; some frontend and route details are incomplete, so omitted relationships are not inferred.
Main entry points: whatsapp.js WhatsApp session and delivery · routes.js API and receipt routes · App.jsx Receipt dashboard · server.js HTTP server
Components 13
Dashboard
- Receipt dashboard
client/src/App.jsx
Receipt API
- HTTP server
server.js - API and receipt routes
src/routes.js
Core Services
- Receipt validation and SVG
src/services/receipt.js - PDF conversion
src/services/pdf.js - WhatsApp session and delivery
src/whatsapp.js
Persistent Data
- Receipt and contact database
src/db.js - Generated receipt files
src/routes.js - WhatsApp credentials
src/whatsapp.js
Other components
- Administrator
- WhatsApp Web
- WhatsApp Cloud API
- Receipt recipients
Connections 14
- Administrator → Receipt dashboard: uses
README.md - Receipt dashboard → HTTP server: requests APIs
client/src/App.jsx - HTTP server → API and receipt routes: mounts routes
server.js - API and receipt routes → WhatsApp session and delivery: checks session
src/routes.js - API and receipt routes → Receipt validation and SVG: validates and builds
src/routes.js - API and receipt routes → PDF conversion: converts SVG
src/routes.js - API and receipt routes → Receipt and contact database: reads and writes
src/routes.js - API and receipt routes → Generated receipt files: writes and serves
src/routes.js - Receipt validation and SVG → WhatsApp session and delivery: normalizes phones
src/services/receipt.js - WhatsApp session and delivery → WhatsApp Web: connects and sends
src/whatsapp.js - WhatsApp session and delivery → WhatsApp credentials: persists credentials
src/whatsapp.js - WhatsApp session and delivery → WhatsApp Cloud API: fallback delivery
src/whatsapp.js - WhatsApp session and delivery → Receipt recipients: sends receipts
README.md - Administrator → WhatsApp session and delivery: scans login QR
README.md