Dashboard
Stock Analytics
Recent Transactions
No recent activity records
No Yarn Inventory Found
Make sure you have configured your sheet URL in Settings and have items listed in Yarn_Inventory sheet.
No Fabric Inventory Found
Ensure items exist in the Fabric_Inventory sheet.
Database Connection Setup
This visual interface uses Google Sheets as a database via a Google Apps Script Web App endpoint. All stock entries and edits are done inside the sheet, keeping the app lighting fast.
Step-by-Step Instructions
Create a Google Sheet
Go to sheets.google.com and create a brand new empty spreadsheet. Name it something like "Yarn & Fabric Inventory".
Open Apps Script Editor
In the Google Sheets top menu, click on Extensions and then select Apps Script. This opens the script development panel in a new tab.
Paste the Backend Code
Clear out any default code in the editor, and copy-paste the entire contents of the code.gs file located in your project directory. Click the Save (floppy disk) icon.
Deploy as a Web App
Click on Deploy at the top right -> select New deployment.
Under the configuration gear, select Web app. Fill in the options exactly as follows:
- Execute as: "Me (your-email@gmail.com)"
- Who has access: "Anyone" (This is crucial to allow the PWA to fetch the data)
Click Deploy. Google will ask you to authorize permissions for the script to read/write spreadsheet files. Confirm the authorization.
Copy Web App URL
Once deployed, copy the generated Web app URL. It should look like: https://script.google.com/macros/s/AKfycby.../exec
Paste that URL in the input field above, and click Save & Connect. The system will automatically construct all sheets, populate sample stock, and load the dashboard!