Krowz
Real discounts at local restaurants, cafés and dessert spots. Show the QR at the counter, staff scan it, done.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기메이커가 쓴 소개는 위의 한 줄이 전부입니다. 더 자세한 내용은 저장소 README에서 읽을 수 있습니다. 저장소 README ↗
README 전체를 불러오는 중입니다.
README 전문 보기 ↗Daily close, sales reports, stock, and supplier ordering for the Porcafe team. It runs as a Next.js app (App Router, React 19) on Firebase Firestore, and staff use it on phones as an installable web app. For how the team uses it day to day, see docs/STAFF_GUIDE.md.
You need Node.js 20.9 or later (the minimum for Next.js 16).
npm install.env.local with the values below. Ask the project owner for them, and never commit this file.| Variable | Used for |
|---|---|
NEXT_PUBLIC_FIREBASE_API_KEY, _AUTH_DOMAIN, _PROJECT_ID, _STORAGE_BUCKET, _MESSAGING_SENDER_ID, _APP_ID | Firebase web config (browser) |
NEXT_PUBLIC_INVENTORY_USAGE_GO_LIVE_DATE | Optional. The first day that counts toward usage |
ANTHROPIC_API_KEY | Reading the daily ticket sheet photo (/api/scan-ticket) |
FIREBASE_PROJECT_ID, FIREBASE_SERVICE_ACCOUNT_JSON | Server-side Firestore access for push and cron jobs |
VAPID_PUBLIC_KEY, VAPID_PRIVATE_KEY, VAPID_SUBJECT | Web push keys |
CRON_SECRET, APP_ORIGIN | Protects the cron routes and builds links in push messages |
If you use the Vercel CLI, vercel env pull writes these, along with VERCEL_OIDC_TOKEN.
npm run dev, then open http://localhost:3000.npm run dev: development servernpm run build: production build (also type-checks)npm start: serve the production buildnpm test: unit tests for the pure logic in src/**/*.test.ts (Node's test runner through tsx). These need no browser and no database.npm run lint: ESLintsrc/app: routes. / Home, /items Daily close and History, /reports, /inventory Stock, /setup. next.config.ts holds the redirects for moved pages.src/lib: the pure logic (reporting, dates, usage, supplier ordering) and data.ts, the Firestore layer. Every write in data.ts calls assertOnline(), so writes are refused while the device is offline and nothing is queued.src/components: UI. setup/ holds the Setup sections. inventory/ holds the Stock components.docs/: the UX audit and plan, plus deployment notes for push alerts and supplier ordering.vercel.json schedules /api/cron/reorder-push-reminders daily at 00:00 UTC (07:00 WIB) and /api/cron/inventory-supplier-deliveries daily at 01:00 UTC (08:00 WIB). Both need CRON_SECRET set in Vercel.firebase deploy --only firestore publishes firestore.rules and firestore.indexes.json./api/cron/inventory-supplier-deliveries at 08:00 WIB daily, and also when a device opens Stock. The cron only creates deliveries whose time has passed, so a delivery time later than 08:00 is created only if someone opens Stock after that time. Keep delivery times at 08:00 or earlier.