Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

README.md

57 lines1.2 KB

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