A TanStack Start example demonstrating integration with Supabase for authentication and database.
To start a new project based on this example, run:
npx gitpick TanStack/router/tree/main/examples/react/start-supabase-basic start-supabase-basicThis example requires Supabase configuration. The .env file contains the necessary environment variables:
SUPABASE_URL=your-project-url
SUPABASE_ANON_KEY=your-anon-keyYou'll need to:
- Create a Supabase project at supabase.com
- Get your project URL and anon key from the project settings
- Update the
.envfile with your credentials
From your terminal:
pnpm install
pnpm devThis starts your app in development mode, rebuilding assets on file changes.
To build the app for production:
pnpm buildThis example demonstrates:
- Authentication with Supabase Auth
- Database queries with Supabase client
- Real-time subscriptions
- Server-side data fetching