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