Next.js + Supabase app. Planner activities and shoot-prep details live in one Postgres database; click any activity in the dashboard to view or edit its prep details, saved straight to the DB.
- Go to https://supabase.com, create a free account and a new project.
- Once it's provisioned, open SQL Editor, then copy and paste the SQL
contents of
supabase/schema.sqlinto a new query and run it (this creates the two tables + basic access policies). - Then copy and paste the SQL contents of
supabase/seed.sqlinto a new query and run it (loads the 35 July planner rows, plus the "Back to School" prep details already known from the prep doc). - Go to Project Settings > API and copy:
- Project URL
anonpublic key
cp .env.local.example .env.localPaste your Project URL and anon key into .env.local.
npm install
npm run devOpen http://localhost:3000 — you should see the dashboard loading data from Supabase.
Push this project to a GitHub repo, then:
- Go to https://vercel.com, "Add New Project", import the repo.
- Add the same two environment variables (
NEXT_PUBLIC_SUPABASE_URL,NEXT_PUBLIC_SUPABASE_ANON_KEY) in Vercel's project settings. - Deploy. Vercel gives you a live URL immediately, and redeploys automatically on every git push.
There are three tables now:
activity_types— one row per unique activity ("Beach Party", "Fill It Up", "Back to School", etc.)activities— one row per dated instance (e.g. "Beach Party" on 13 Jul at T3, and again on 14 Jul at T5, etc.), each pointing at itsactivity_type_idprep_details— one row per activity type, not per date
So editing the prep sheet from any single "Beach Party" card updates it for every date/branch that activity appears on. This matches the school's request: one shared shoot-prep sheet per activity, regardless of how many times it repeats on the calendar.
- Access control: the current Supabase policies allow anyone with the
anon key to read and write. Fine for an internal team tool behind a
private URL; if you want to restrict who can edit, add Supabase Auth
(email/password or magic link) and tighten the RLS policies to
using (auth.uid() is not null). - Adding new months: insert new rows into
activity_typesandactivitiesdirectly in Supabase's table editor, or build a simple "add activity" form in the dashboard later. - Renaming an activity type: since prep sheets are keyed to
activity_types.name, renaming an activity (e.g. "Beach Party" → "Beach Day") is a single update to that one row — every dated instance and its shared prep sheet follow automatically.