How dextarfinity/elishen-agrivance works
Elishen Agrivance is a sales and inventory management system: staff use a shared web UI to record sales and purchasing, manage inventory and customer records, track payments, and produce operational documents and reports. The web UI and packaged Electron/Capacitor clients call a Node API backed by PostgreSQL. The README also documents Customer Information Sheets, store visits, receivables, pricing, and stocktake capabilities; several are represented at the UI or API subsystem level because their implementation excerpts are incomplete. Relationships are limited to calls or architecture explicitly evidenced by excerpts and README statements.
Main entry points: index.js Node API · index.html Web application · views.js View rendering · app.js UI workflows
Components 21
User clients
- Web application
app/index.html - View rendering
app/views.js - UI workflows
app/app.js - API client
app/api.js - Desktop client
electron/main.js - Mobile client
capacitor/android/app/src/main/java/com/elishen/agrivance/MainActivity.java
Sales operations
- Sales and orders
backend/index.js - Purchasing
backend/index.js - Inventory and stocktake
backend/index.js - Price management
backend/index.js - Deliveries and receipts
backend/index.js - Print documents
app/print.js
Customer and finance
- Customers and CIS
backend/index.js - Store visits
backend/index.js - Receivables and payments
backend/index.js - Accounts and expenses
backend/index.js - Reports
backend/index.js
API and persistence
- Node API
backend/index.js - PostgreSQL
db/schema.sql
Other components
- Staff users
- LAN / domain clients
Connections 33
- Staff users → Web application: uses
README.md - Web application → View rendering: renders
app/views.js - Web application → UI workflows: wires actions
app/app.js - UI workflows → API client: calls
app/app.js - Desktop client → Web application: loads UI
electron/main.js - Mobile client → Web application: wraps UI
README.md - Web application → Node API: HTTP requests
README.md - Desktop client → Node API: API requests
README.md - Mobile client → Node API: API requests
README.md - LAN / domain clients → Node API: connects
README.md - Node API → PostgreSQL: queries
backend/index.js - UI workflows → Sales and orders: submits sales
app/app.js - UI workflows → Store visits: records visits
app/app.js - View rendering → Sales and orders: loads sales
app/views.js - View rendering → Customers and CIS: loads customers
app/views.js - View rendering → Inventory and stocktake: loads stock
app/views.js - View rendering → Accounts and expenses: loads accounts
app/views.js - Print documents → Deliveries and receipts: reads delivery data
app/print.js - Print documents → Customers and CIS: prints sheets
app/print.js - Print documents → Receivables and payments: prints statements
app/print.js - Node API → Price management: serves price history
backend/index.js - Node API → Sales and orders: handles sales
backend/index.js - Node API → Deliveries and receipts: serves deliveries
backend/index.js - Purchasing → Inventory and stocktake: updates stock
backend/index.js - Reports → Inventory and stocktake: summarizes stock
backend/index.js - Receivables and payments → Sales and orders: tracks balances
backend/index.js - Node API → Purchasing: handles purchasing
backend/index.js - Node API → Inventory and stocktake: handles inventory
backend/index.js - Node API → Customers and CIS: handles customer sheets
backend/index.js - Node API → Store visits: handles visits
backend/index.js - Node API → Receivables and payments: handles payments
backend/index.js - Node API → Accounts and expenses: handles finance
backend/index.js - Node API → Reports: serves reports
backend/index.js