How ameyey/new-bill-pro works
BillPro is an invoicing and business-management application. Users authenticate, manage customers and products, create GST-aware invoices, preview and save them, and access reports, settings, image uploads, and subscription features; a separate admin dashboard manages users. The backend exposes these domains through Express routes and persists data through a database adapter. The README contains no usable product description, so capability coverage relies on the source tree and index; several backend routes and frontend pages were not sampled, and their internal behavior is not inferred.
Main entry points: server.js Express API server · App.jsx App routing · api.js API client · db.js Database adapter
Components 29
Client experience
- App routing
frontend/src/App.jsx - Sign in / register
frontend/src/pages/Auth - Auth state
frontend/src/context/AuthContext.jsx - API client
frontend/src/utils/api.js
Billing workflow
- Invoice creation
frontend/src/pages/Invoices/CreateInvoice.jsx - Invoice preview
frontend/src/components/InvoicePreviewModal.jsx - Invoice template
frontend/src/components/InvoiceTemplates/IndustrialTemplate.jsx - GST calculations
backend/src/utils/gstCalculator.js - Invoice PDF generation
backend/src/utils/pdfGenerator.js
Business operations
- Customer management
frontend/src/pages/Customers/CustomerList.jsx - Product management
frontend/src/pages/Products/ProductList.jsx - Admin user dashboard
backend/src/controllers/myUserController.js - Dashboard and reports
frontend/src/pages/Dashboard/DashboardHome.jsx - Reports view
frontend/src/pages/Reports/ReportsPage.jsx - Settings view
frontend/src/pages/Settings/SettingsPage.jsx - Subscription view
frontend/src/pages/Subscriptions/SubscriptionPage.jsx
API services
- Invoice service
backend/src/controllers/invoiceController.js - Invoice routes
backend/src/routes/invoiceRoutes.js - Customer service
backend/src/controllers/customerController.js - Product service
backend/src/controllers/productController.js - Reporting service
backend/src/controllers/reportController.js - Company settings
backend/src/controllers/settingsController.js - Subscription service
backend/src/controllers/subscriptionController.js - Image uploads
backend/src/controllers/uploadController.js - Request authentication
backend/src/middleware/auth.js - Express API server
backend/src/server.js
Persistence
- Database adapter
backend/src/config/db.js - Application schema
backend/src/models/schema.js
Other components
- Business user
Connections 38
- Business user → App routing: uses
- App routing → Sign in / register: routes to
frontend/src/App.jsx - App routing → Invoice creation: routes to
frontend/src/App.jsx - App routing → Dashboard and reports: routes to
frontend/src/App.jsx - App routing → Reports view: routes to
frontend/src/App.jsx - App routing → Settings view: routes to
frontend/src/App.jsx - App routing → Subscription view: routes to
frontend/src/App.jsx - App routing → Admin user dashboard: routes to
frontend/src/App.jsx - Sign in / register → Auth state: uses
frontend/src/pages/Auth/Login.jsx - Auth state → API client: requests
frontend/src/context/AuthContext.jsx - Customer management → API client: requests
frontend/src/pages/Customers/CustomerList.jsx - Product management → API client: requests
frontend/src/pages/Products/ProductList.jsx - Invoice creation → API client: requests
frontend/src/pages/Invoices/CreateInvoice.jsx - Invoice creation → Invoice preview: opens preview
frontend/src/pages/Invoices/CreateInvoice.jsx - Invoice preview → Invoice template: renders
frontend/src/components/InvoicePreviewModal.jsx - Reports view → API client: requests
frontend/src/pages/Reports/ReportsPage.jsx - Settings view → API client: requests
frontend/src/pages/Settings/SettingsPage.jsx - Subscription view → API client: requests
frontend/src/pages/Subscriptions/SubscriptionPage.jsx - Dashboard and reports → API client: requests
frontend/src/pages/Dashboard/DashboardHome.jsx - API client → Express API server: sends API requests
- Express API server → Invoice routes: mounts routes
backend/src/server.js - Express API server → Customer service: mounts customer routes
- Express API server → Product service: mounts product routes
- Express API server → Reporting service: mounts report routes
- Express API server → Company settings: mounts settings routes
- Express API server → Subscription service: mounts subscription routes
- Express API server → Image uploads: mounts upload routes
backend/src/server.js - Express API server → Admin user dashboard: mounts admin routes
backend/src/server.js - Invoice routes → Invoice service: dispatches to
backend/src/routes/invoiceRoutes.js - Invoice service → Database adapter: reads and writes
backend/src/controllers/invoiceController.js - Invoice service → GST calculations: calculates totals
backend/src/controllers/invoiceController.js - Invoice service → Invoice PDF generation: generates PDF
backend/src/controllers/invoiceController.js - Customer service → Database adapter: reads and writes
backend/src/controllers/customerController.js - Reporting service → Database adapter: queries reports
backend/src/controllers/reportController.js - Admin user dashboard → Database adapter: reads and updates
backend/src/controllers/myUserController.js - Express API server → Application schema: initializes schema
backend/src/server.js - Application schema → Database adapter: defines stored data
- Request authentication → Database adapter: loads user
backend/src/middleware/auth.js