How jiffry-shuhail/asian-cargo works
Asian Cargo is an Electron-packaged cargo operations application with an Express server, browser-based operational screens, and Firebase-backed records. The main workflow is user authentication, maintaining customers/products/exporters, preparing shipment data (including pending drafts and shipment updates), then managing shipment status and generating invoice-related records. The tree also exposes clearing, quotation, Excel import, and shipping-process capabilities. Source excerpts show some server-to-handler calls and Firestore operations; many UI and route implementations were not sampled, so their internal links are omitted.
Main entry points: app.js Express application · customer.js Customer management · authentication.js Authentication · updateShipmentHeader.js Shipment header updates
Components 26
Application entry
- Express application
app.js - Electron host
main.js
Identity and setup
- Authentication
routes/authentication.js - Home routes
routes/home.js
Cargo operations
- Customer management
routes/js/customer.js - Products and categories
routes/js/products.js - Exporter records
routes/js/exporter.js - Clearing
routes/js/clearing.js - Quotations
routes/js/quotation.js - Excel import
routes/js/readExcel.js - Shipping process
routes/js/shippingprocess.js
Shipment records
- Shipment queries and invoices
routes/js/shipment.js - Pending shipments
routes/js/pendingShipments.js - Shipment synchronization
routes/js/syncShipment.js - Shipment updates
routes/js/updateShipment.js - Shipment header updates
routes/js/updateShipmentHeader.js - Weight updates
routes/js/weightUpdate.js - Input validation
routes/js/validation.js
Operational screens
- Customer screens
public/app/js/customer/customer.js - Product screens
public/app/js/goods/goods.js - Shipment screens
public/app/js/shipment/shipment.js - Shipping input
public/app/js/shippingInput/ShippingInput.js - Invoice documents
public/app/js/shipment/Invoice.js
Other components
- Cargo operator
- Firebase services
- Google Cloud Storage
Connections 23
- Cargo operator → Express application: uses
- Electron host → Express application: hosts
- Express application → Home routes: routes
app.js - Home routes → Authentication: authenticates
routes/home.js - Express application → Authentication: routes
app.js - Authentication → Firebase services: verifies and reads
routes/authentication.js - Express application → Customer management: dispatches
app.js - Express application → Products and categories: dispatches
app.js - Express application → Shipment queries and invoices: dispatches
app.js - Express application → Pending shipments: dispatches
app.js - Express application → Clearing: dispatches
app.js - Express application → Quotations: dispatches
app.js - Express application → Excel import: dispatches
app.js - Express application → Shipping process: dispatches
app.js - Customer management → Firebase services: reads records
routes/js/customer.js - Customer management → Google Cloud Storage: uses files
routes/js/customer.js - Products and categories → Firebase services: reads and writes
routes/js/products.js - Shipment queries and invoices → Firebase services: reads and writes
routes/js/shipment.js - Pending shipments → Firebase services: reads and writes
routes/js/pendingShipments.js - Shipment synchronization → Firebase services: updates records
routes/js/syncShipment.js - Shipment header updates → Input validation: validates with
routes/js/updateShipmentHeader.js - Shipment header updates → Firebase services: writes shipment
routes/js/updateShipmentHeader.js - Exporter records → Firebase services: reads and writes
routes/js/exporter.js