BikeControl (SwiftControl)
使用 Zwift Click、Zwift Play、Shimano Di2 或任何藍牙控制器,搭配 MyWhoosh、Rouvy、Zwift 等。iOS、Android、Windows、macOS 均可免費試用。
AI 翻译
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证正在加载完整 README。 以下为已保存的摘录。
An operations, scheduling, and communication hub for a gym's trainers and clients.
Built with Next.js (App Router), Supabase (Postgres + Auth + Row-Level Security), Tailwind CSS, and deployed on Vercel.查看完整 README ↗An operations, scheduling, and communication hub for a gym's trainers and clients.
Built with Next.js (App Router), Supabase (Postgres + Auth + Row-Level Security), Tailwind CSS, and deployed on Vercel.
| Table | Purpose |
|---|---|
profiles | One row per auth user (role, name, contact, bio, goals). |
trainer_clients | Links clients to trainers. |
availability | Recurring weekly availability windows for trainers. |
sessions | Calendar bookings between a trainer and a client. |
messages | 1:1 direct messages. |
announcements | Gym-wide posts (trainer-authored). |
client_progress | Measurement / progress log per client. |
Every table is protected by Row-Level Security — users only ever see and modify their own data. See supabase/migrations/0001_init.sql.
npm install
cp .env.example .env.local # fill in your Supabase URL + anon key
npm run dev
Environment variables:
| Variable | Where to find it |
|---|---|
NEXT_PUBLIC_SUPABASE_URL | Supabase project → Settings → API |
NEXT_PUBLIC_SUPABASE_ANON_KEY | Supabase project → Settings → API (publishable/anon key) |
Apply the migration in supabase/migrations/0001_init.sql to a Supabase project
(via the Supabase SQL editor, the CLI, or the dashboard). It creates all tables,
the handle_new_user trigger that provisions a profile on signup, and the
row-level-security policies.
The recommended, reliable path is to import this GitHub repo into Vercel:
Vercel → Add New… → Project → import the idealfitness repo.
Select the branch claude/gym-operations-hub-yvlsdx (or merge it to main first).
Framework preset: Next.js (auto-detected).
Add the two Environment Variables (Production + Preview):
| Key | Value |
|---|---|
NEXT_PUBLIC_SUPABASE_URL | https://oknfnlucnnnzgxahtkrp.supabase.co |
NEXT_PUBLIC_SUPABASE_ANON_KEY | sb_publishable_nbyLuTf1yM5AEp1_TRi9LA_CHsFKqm8 |
Deploy. Every future push auto-deploys.
The anon/publishable key is safe to expose in the browser — access is enforced by the row-level-security policies in the migration.
The database is seeded with three confirmed accounts (password Fitness123!):
| Role | |
|---|---|
[email protected] | Trainer (has 2 clients, sessions, announcements) |
[email protected] | Client |
[email protected] | Client |
New sign-ups: Supabase email confirmation is on by default. For open self-serve signup, turn off Authentication → Providers → Email → "Confirm email" in the Supabase dashboard so new users can log in immediately.