Open History to see the last commit
1# TanStack Start - Supabase Example
2β
3A TanStack Start example demonstrating integration with Supabase for authentication and database.
4β
5- [TanStack Router Docs](https://tanstack.com/router)
6- [Supabase Documentation](https://supabase.com/docs)
7β
8## Start a new project based on this example
9β
10To start a new project based on this example, run:
11β
12```sh
13npx gitpick TanStack/router/tree/main/examples/react/start-supabase-basic start-supabase-basic
14```
15β
16## Setup
17β
18This example requires Supabase configuration. The `.env` file contains the necessary environment variables:
19β
20```env
21SUPABASE_URL=your-project-url
22SUPABASE_ANON_KEY=your-anon-key
23```
24β
25You'll need to:
26β
271. Create a Supabase project at [supabase.com](https://supabase.com)
282. Get your project URL and anon key from the project settings
293. Update the `.env` file with your credentials
30β
31## Getting Started
32β
33From your terminal:
34β
35```sh
36pnpm install
37pnpm dev
38```
39β
40This starts your app in development mode, rebuilding assets on file changes.
41β
42## Build
43β
44To build the app for production:
45β
46```sh
47pnpm build
48```
49β
50## Supabase Integration
51β
52This example demonstrates:
53β
54- Authentication with Supabase Auth
55- Database queries with Supabase client
56- Real-time subscriptions
57- Server-side data fetching