- Create a Supabase project.
- In Supabase SQL Editor, run
/Users/solstirling/Documents/git/solstirling.com/supabase/schema.sql. - If your DB was already set up before content blocks/uploads, also run:
/Users/solstirling/Documents/git/solstirling.com/supabase/content_media_migration.sql
- In Supabase Authentication, create your user (email/password).
- Copy
supabase-config.example.jstosupabase-config.jsand set:urlanonKeysiteSlug(keepsolstirling.comunless you want a different namespace)
- Keep
supabase-config.jslocal (it is ignored by git).
index.htmlreads fromportfolio_published(public read).dashboard.htmlrequires sign-in and editsportfolio_drafts.preview.htmlrequires sign-in and shows drafts.project.htmlsupports published and draft source views.- Clicking
Publish Draft Changescopies draft rows into published and removes those rows from drafts. - Drag/drop media uploads use bucket
portfolio-mediaand store files under<user_id>/<site_slug>/....