This contains everything you need to run your app locally.
View your app in AI Studio: https://ai.studio/apps/bea283d2-db1b-472b-9587-78dd578fb8a2
Prerequisites: Node.js
- Install dependencies:
npm install - Copy env template and fill Supabase keys:
cp .env.example .env - In Supabase SQL editor, run:
supabase-schema.sqlsupabase-auth-migration.sql
- In Supabase dashboard:
- Auth -> Providers -> Phone: enable phone auth
- Configure SMS provider/template for OTP
- Start frontend + backend:
npm run dev:full
- Frontend uses
VITE_SUPABASE_URL+VITE_SUPABASE_ANON_KEYfor OTP login/register. - Backend uses
SUPABASE_SERVICE_ROLE_KEYto verify token and perform server-side operations. - API expects
Authorization: Bearer <access_token>for write actions:- POST
/api/notes - POST/DELETE
/api/notes/:id/like - POST/DELETE
/api/notes/:id/collect
- POST
