How vishal343012/erp-project works
This is a small Node/Express ERP proof of concept: a browser dashboard loads customer data, summary metrics, and database health, and can submit new customers. The server exposes those API operations and uses PostgreSQL for health checks and customer reads/writes; invoice and revenue figures are demo placeholders. The README describes a customers schema that does not match the insert/read fields shown in server.js, so persistence may require schema alignment. The graph reflects the sampled files and documented capabilities; it does not infer additional ERP modules.
Main entry points: app.js Dashboard UI · server.js Customer API
Components 6
Dashboard
- Dashboard UI
public/app.js
API
- Customer API
server.js - Summary API
server.js - Health API
server.js
Persistence
- PostgreSQL
Other components
- Browser user
Connections 8
- Browser user → Dashboard UI: uses
public/app.js - Dashboard UI → Customer API: requests customers
public/app.js - Dashboard UI → Customer API: submits customer
public/app.js - Dashboard UI → Summary API: requests summary
public/app.js - Dashboard UI → Health API: checks health
public/app.js - Customer API → PostgreSQL: reads and writes
server.js - Summary API → PostgreSQL: counts customers
server.js - Health API → PostgreSQL: tests connection
server.js