尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Owner-Operator Cost Per Mile calculator — mobile-first PWA, Next.js + Supabase
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
Owner-Operator Cost Per Mile calculator. Mobile-first PWA. Built for drivers who aren't tech savvy: big inputs, big numbers, plain English.
Stage 1 (this repo): Each driver creates an account and gets a saved cost profile. The app calculates true cost per mile (CPM), the minimum target rate, break-even monthly revenue, and projected monthly profit — live, as they type.
Stage 2 (next): Weekly load tracker that uses the saved CPM to flag profitable vs. losing loads.
1. Supabase — create the database table檢視完整 README ↗Owner-Operator Cost Per Mile calculator. Mobile-first PWA. Built for drivers who aren't tech savvy: big inputs, big numbers, plain English.
Stage 1 (this repo): Each driver creates an account and gets a saved cost profile. The app calculates true cost per mile (CPM), the minimum target rate, break-even monthly revenue, and projected monthly profit — live, as they type.
Stage 2 (next): Weekly load tracker that uses the saved CPM to flag profitable vs. losing loads.
supabase-setup.sql in this repo, copy the whole contents into the editor, click Run.Sebabrzek/profitrig.NEXT_PUBLIC_SUPABASE_URL = https://qgwzxvqrpuodvuovxkcn.supabase.coNEXT_PUBLIC_SUPABASE_ANON_KEY = your publishable key (sb_publishable_...)*.vercel.app URL — that's your live app.profitrig.com) in Project → Settings → Domains.https://profitrig.vercel.app)npm install
npm run dev
Open http://localhost:3000. Sign up with any email/password (must be 6+ chars), then you'll land on the calculator.
.env.local already contains your Supabase URL + key.
src/app/page.tsx — main calculator screen (server component, auth-gated, loads saved profile)src/app/Calculator.tsx — interactive form + live resultssrc/app/login/ — sign in / sign upsrc/app/actions.ts — server actions (sign in, sign up, sign out, save profile)src/lib/supabase/ — Supabase clients (browser, server, middleware)src/middleware.ts — refreshes the user session on every request, redirects to /login if not signed insupabase-setup.sql — the database schema + row-level-security policies (run this once in Supabase)public/manifest.webmanifest + public/icons/ — PWA config, "Add to Home Screen" worksAdd loads table keyed by user_id with: date, broker, miles, rate paid, optional fuel cost, profit/loss vs. saved CPM, week aggregates. Same auth, same shadcn-style UI. Will reuse the saved cost_profiles row.