CoolFace
Apppublic

Waqasjan123/Touch-Wood

sourceHugging Faceupdated 7mo agoView on Hugging Face
0likes
App README

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)

  1. 1.Go to https://huggingface.co/new-dataset
  2. 2.Name it poplarworks-data, set to Private
  3. 3.Note your username — repo will be your-username/poplarworks-data

2. Create a HuggingFace Space (for the app)

  1. 1.Go to https://huggingface.co/new-space
  2. 2.SDK: Static
  3. 3.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_REPOyour-username/poplarworks-data

4. Build & Upload

bash
npm install
npm run build
# Upload everything in dist/ to your HuggingFace Space

Or use the HF CLI:

bash
pip install huggingface_hub
huggingface-cli upload your-username/poplarworks dist/ . --repo-type space

Default 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