How natawun/stock-pormarine works
This is a Google Apps Script inventory dashboard for Pormarine, backed by a Google Spreadsheet. The principal workflow is a browser request reaching the web-app entry point, which loads dashboard data from the spreadsheet and either renders the dashboard template or returns JSON. The server also transforms three distinct report sheets into stock, inbound, and outbound data. The HTML file is present in the tree, but its contents were not provided, so its internal behavior and client-side calls are not represented.
Main entry points: google-apps-script.js Dashboard data loader · index.html Dashboard template
Components 10
Web interface
- Dashboard template
index.html - JSON response
google-apps-script.js
Apps Script service
- Web request handler
google-apps-script.js - Dashboard data loader
google-apps-script.js - Spreadsheet access
google-apps-script.js
Inventory data
- Google Spreadsheet
- Stock report
google-apps-script.js - Inbound report
google-apps-script.js - Outbound report
google-apps-script.js
Other components
- Browser user
Connections 12
- Browser user → Web request handler: requests page or API
google-apps-script.js - Web request handler → Dashboard data loader: loads dashboard data
google-apps-script.js - Web request handler → Dashboard template: renders template
google-apps-script.js - Web request handler → JSON response: returns JSON
google-apps-script.js - Dashboard data loader → Spreadsheet access: gets spreadsheet
google-apps-script.js - Spreadsheet access → Google Spreadsheet: opens or gets active
google-apps-script.js - Dashboard data loader → Stock report: reads stock report
google-apps-script.js - Dashboard data loader → Inbound report: reads inbound report
google-apps-script.js - Dashboard data loader → Outbound report: reads outbound report
google-apps-script.js - Stock report → Google Spreadsheet: reads sheet rows
google-apps-script.js - Inbound report → Google Spreadsheet: reads sheet rows
google-apps-script.js - Outbound report → Google Spreadsheet: reads sheet rows
google-apps-script.js