How iqbalussain/bookit works
BookIt is an invoice and accounting application with a React interface and Electron desktop runtime. Users manage parties and items, create sales or purchase documents, record payments and vouchers, and review accounting reports. The app routes users to feature pages; shared application state handles accounting operations and local or remote collections. The README documents SQLite storage and backup/restore, while the tree also shows Electron and server components. Some capabilities are represented from README/tree evidence because their implementation was not sampled; unsupported internal wiring is omitted.
Main entry points: AppContext.tsx Application state · App.tsx App routing · QuotationForm.tsx Quotations · InvoiceForm.tsx Sales invoices
Components 22
Application experience
- App routing
src/App.tsx - App layout
src/components/layout/AppLayout.tsx - Shared UI components
src/components/ui
Business documents
- Customer/vendor management
src/pages/ClientsList.tsx - Item selection
src/components/ItemPicker.tsx - Quotations
src/pages/QuotationForm.tsx - Sales invoices
src/pages/InvoiceForm.tsx - Purchase invoices
src/pages/PurchaseInvoiceForm.tsx - Payments and receipts
src/pages/PaymentForm.tsx
Accounting and reports
- Vouchers
src/pages/VoucherDashboard.tsx - Chart of accounts
src/pages/ChartOfAccounts.tsx - Financial reports
src/pages/reports
State and persistence
- Application state
src/contexts/AppContext.tsx - Journal posting
src/lib/postingEngine.ts - Balance calculations
src/lib/accounting.ts - Local collections
src/hooks/useLocalStorage.ts - Remote collections
src/hooks/useRemoteCollection.ts - Remote API client
src/lib/apiClient.ts - Backup and restore
src/components/BackupRestore.tsx
Desktop and services
- SQLite database
server/server.js - Electron runtime
main.cjs
Other components
- BookIt user
Connections 16
- BookIt user → App routing: uses
src/App.tsx - App routing → App layout: wraps routes
src/App.tsx - App routing → Sales invoices: routes to
src/App.tsx - App routing → Quotations: routes to
src/App.tsx - Sales invoices → Application state: uses state
src/pages/InvoiceForm.tsx - Quotations → Application state: uses state
src/pages/QuotationForm.tsx - Customer/vendor management → Application state: uses state
src/pages/ClientsList.tsx - Quotations → Item selection: uses picker
src/pages/QuotationForm.tsx - Application state → Journal posting: builds entries
src/contexts/AppContext.tsx - Application state → Balance calculations: checks balances
src/contexts/AppContext.tsx - Application state → Local collections: persists collections
src/contexts/AppContext.tsx - Application state → Remote collections: uses collections
src/contexts/AppContext.tsx - Remote collections → Remote API client: calls API
src/hooks/useRemoteCollection.ts - Sales invoices → Shared UI components: renders controls
src/pages/InvoiceForm.tsx - BookIt user → SQLite database: stores business data
README.md - BookIt user → Electron runtime: runs desktop app
README.md