A Next.js + Supabase Progressive Web App (PWA) for pet & person care. This branch contains the initial scaffold for the pet-care MVP (dog & cat), including database migrations, RLS policy SQL, and a mobile-first Next + Supabase frontend.
Run locally
- Create a Supabase project and run the SQL files in the
sql/folder (schema.sql then policies.sql). - Create a
.env(or.env.local) at the repo root with:
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_anon_key
SUPABASE_SECRET_KEY=your_secret_keyNEXT_PUBLIC_USE_LOCAL_DB=true
NEXT_PUBLIC_LOCAL_SUPABASE_URL=http://localhost:54321
NEXT_PUBLIC_LOCAL_SUPABASE_ANON_KEY=your_local_anon_key
NEXT_PUBLIC_LOCAL_SUPABASE_SECRET_KEY=your_local_secret_key- Enable Corepack:
corepack enable- Install dependencies:
pnpm install- Start the development server:
pnpm devNotes
- Keep your
SUPABASE_SECRET_KEY/NEXT_PUBLIC_LOCAL_SUPABASE_SECRET_KEYprivate; do not put secret keys in client env vars. - This scaffold uses the Next App Router and Tailwind for styling.
What is included
- sql/schema.sql: table definitions and default activity type seeds
- sql/policies.sql: basic RLS policies to limit access to pet caretakers
- app/: Next.js app with onboarding and pet detail pages
- components/: QuickActions, ActivityFeed, Chat
- lib/supabaseClient.ts: simple Supabase client
This is an initial scaffold intended for review. After merge we can iterate on auth UI, tests, and additional features.