尚未检测到更新。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.