尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
StoreFlow is a mobile-first Progressive Web App (PWA) for small business owners — inventory, sales, expenses, restocking, staff, and a customer-facing order storefront, all in one app. It's built to work offline-first on a phone, with cloud sync and backup via Supabase for stores that want multi-device access.檢視完整 README ↗StoreFlow is a mobile-first Progressive Web App (PWA) for small business owners — inventory, sales, expenses, restocking, staff, and a customer-facing order storefront, all in one app. It's built to work offline-first on a phone, with cloud sync and backup via Supabase for stores that want multi-device access.
localStorage, synced to Supabase (Postgres) for cloud backup and multi-device accessvite-plugin-pwa with a custom service worker (src/sw.ts, injectManifest strategy) for offline support and Web Pushsrc/
components/ UI components (one per feature area: Inventory, Sales,
Orders, Expenses, ROITracker, SmartRestockEngine, etc.)
components/qr/ QR code generation and barcode/QR scanning
components/dashboards/ Role-specific dashboards (Owner, Manager, Cashier, Inventory)
lib/ Core business logic — store-data.ts (the main data layer:
CRUD for products, sales, expenses, restocks, loans, etc.),
manager-intel.ts (insights/notifications/AI-ish analysis),
reports.ts (share summary + full raw exports),
print-engine.ts (receipt printing — system + Bluetooth),
push-notifications.ts (Web Push subscribe/unsubscribe)
pages/ Top-level routed pages (Index.tsx is the main app shell)
sw.ts Custom service worker (push notifications, offline caching)
types/store.ts Central type definitions for all store data
supabase/
functions/ Edge Functions (e.g. send-order-push, scan-receipt)
migrations/ Database schema migrations
Requires Node.js and npm.
git clone <this-repo-url>
cd storeflow-innie
npm install
npm run dev
Other useful commands:
npm run build # production build
npm run preview # preview a production build locally
npm test # run tests once
npm run test:watch # run tests in watch mode
npm run lint # lint the codebase
This app expects a connected Supabase project (see src/integrations/supabase/client.ts for the client config). For push notifications to actually send, the send-order-push Edge Function needs VAPID_PUBLIC_KEY, VAPID_PRIVATE_KEY, and VAPID_SUBJECT set as Supabase secrets — see the comments in src/lib/push-notifications.ts for details.
src/lib/store-data.ts and src/lib/manager-intel.ts — most features read/write a single StoreData object (see src/types/store.ts) that gets persisted locally and synced to Supabase.src/sw.ts) is hand-written (not auto-generated) because it needs custom push and notificationclick handlers — don't switch the PWA build strategy back to generateSW without accounting for this.npx tsc --noEmit -p tsconfig.app.json to see the current count.