Waqasjan123/Touch-Wood
0
Poplar Works · Production Control System
Multi-product stick manufacturing dashboard with batch tracking, expense ledger, petty cash management, and reports.
Deployment Steps
1. Create a HuggingFace Dataset Repo (for data storage)
- Go to https://huggingface.co/new-dataset
- Name it
poplarworks-data, set to Private - Note your username — repo will be
your-username/poplarworks-data
2. Create a HuggingFace Space (for the app)
- Go to https://huggingface.co/new-space
- SDK: Static
- Name it
poplarworks(or anything you like)
3. Set Secrets
In your Space settings → Variables and Secrets:
VITE_HF_TOKEN→ Your HuggingFace write token (from https://huggingface.co/settings/tokens)VITE_HF_REPO→your-username/poplarworks-data
4. Build & Upload
npm install
npm run build
# Upload everything in dist/ to your HuggingFace SpaceOr use the HF CLI:
pip install huggingface_hub
huggingface-cli upload your-username/poplarworks dist/ . --repo-type spaceDefault PINs (change in Settings after first login)
- Owner PIN:
1234 - Accountant PIN:
0000
Features
- Owner: Full access — batches, products, expenses, reports, petty cash, settings
- Accountant: Petty cash ledger + expense entry with photo receipts
- Offline mode: Works without HuggingFace token — data saved in browser localStorage
- Multi-SKU batches: Each batch can produce multiple product types
- Polished vs Dried: Per-output-line flag on every batch
- Packing consumables: Per-product rules (rubber band, small bag, big bag)
- Bag-of-packs units: e.g. 80 packs × 350–450g for Lolli sticks
- Waste as revenue: Wood chips/offcuts tracked and monetized
- Expense heads: Pre-set industry-specific heads, linkable to batches
- Reports: Date filters, groupby (head/batch/month), multiple views
