How bharathkumar-c/billdeskpro works
BillDeskPro is a web billing application for business staff. Users sign in, manage products and customers, create and track invoices, and review sales analytics. The React pages call the Express API through a shared Axios client; API routes dispatch to controllers, which query MySQL. The README documents CSV reporting and invoice printing/PDF download; those capabilities are retained as part of the relevant UI workflows, though their implementation details were not sampled. Edges reflect explicit imports, route registration, or documented client/API use; unsampled links are omitted.
Main entry points: App.js App routing · api.js API client · index.js HTTP application · db.js MySQL access
Components 23
Web application
- App routing
client/src/App.js - Sign in
client/src/pages/Login.js - Session context
client/src/context/AuthContext.js - Workspace layout
client/src/components/Layout.js - Dashboard
client/src/pages/Dashboard.js - Product management
client/src/pages/Products.js - Customer management
client/src/pages/Customers.js - Invoice history
client/src/pages/Invoices.js - Invoice creation
client/src/pages/NewInvoice.js - Invoice detail
client/src/pages/InvoiceDetail.js - Reports and export
client/src/pages/Reports.js - API client
client/src/utils/api.js
API and access
- HTTP application
server/index.js - JWT authorization
server/middleware/auth.js - Schema setup
server/routes/setup.js
Billing services
- Authentication
server/controllers/authController.js - Product service
server/controllers/productController.js - Customer service
server/controllers/customerController.js - Invoice service
server/controllers/invoiceController.js - Reporting service
server/controllers/reportController.js
Persistence
- MySQL access
server/config/db.js - MySQL database
Other components
- Business staff
Connections 34
- Business staff → App routing: uses
README.md - App routing → Sign in: routes to
client/src/App.js - App routing → Dashboard: routes to
client/src/App.js - App routing → Product management: routes to
client/src/App.js - App routing → Customer management: routes to
client/src/App.js - App routing → Invoice history: routes to
client/src/App.js - App routing → Invoice creation: routes to
client/src/App.js - App routing → Invoice detail: routes to
client/src/App.js - App routing → Reports and export: routes to
client/src/App.js - App routing → Session context: provides
client/src/App.js - App routing → Workspace layout: routes through
client/src/App.js - Session context → API client: calls
client/src/context/AuthContext.js - Sign in → Session context: uses
client/src/pages/Login.js - Dashboard → API client: requests data
client/src/pages/Dashboard.js - Product management → API client: requests data
client/src/pages/Products.js - Customer management → API client: requests data
client/src/pages/Customers.js - Invoice history → API client: requests data
client/src/pages/Invoices.js - Invoice creation → API client: requests data
client/src/pages/NewInvoice.js - Invoice detail → API client: requests data
client/src/pages/InvoiceDetail.js - Reports and export → API client: requests data
client/src/pages/Reports.js - API client → HTTP application: calls API
README.md - HTTP application → Authentication: mounts routes
server/index.js - HTTP application → Product service: mounts routes
server/index.js - HTTP application → Customer service: mounts routes
server/index.js - HTTP application → Invoice service: mounts routes
server/index.js - HTTP application → Reporting service: mounts routes
server/index.js - HTTP application → Schema setup: mounts routes
server/index.js - Authentication → MySQL access: queries
server/controllers/authController.js - Product service → MySQL access: queries
server/controllers/productController.js - Customer service → MySQL access: queries
server/controllers/customerController.js - Invoice service → MySQL access: queries
server/controllers/invoiceController.js - Reporting service → MySQL access: queries
server/controllers/reportController.js - Schema setup → MySQL access: uses
server/routes/setup.js - MySQL access → MySQL database: connects
README.md