Skip to content

Commit 7a68149

Browse files
authored
Update README.md with instructions for Vite instead of Create React App (supabase#19082)
1 parent e32b146 commit 7a68149

File tree

1 file changed

+6
-6
lines changed
  • examples/user-management/react-user-management

1 file changed

+6
-6
lines changed

examples/user-management/react-user-management/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Supabase Create React App User Management
1+
# Supabase Vite User Management
22

33
This example will set you up for a very common situation: users can sign up with a magic link and then update their account with public profile information, including a profile image.
44

@@ -7,12 +7,12 @@ This demonstrates how to use:
77
- User signups using Supabase [Auth](https://supabase.com/auth).
88
- User avatar images using Supabase [Storage](https://supabase.com/storage).
99
- Public profiles restricted with [Policies](https://supabase.com/docs/guides/auth#policies).
10-
- Frontend using [Create React App](https://reactjs.org/docs/create-a-new-react-app.html).
10+
- Frontend using [Vite](https://vitejs.dev/).
1111

1212
## Technologies used
1313

1414
- Frontend:
15-
- [Create React App](https://reactjs.org/docs/create-a-new-react-app.html) - a React toolchain.
15+
- [Vite](https://vitejs.dev/) - a React toolchain.
1616
- [Supabase.js](https://supabase.com/docs/library/getting-started) for user management and realtime data syncing.
1717
- Backend:
1818
- [supabase.com/dashboard](https://supabase.com/dashboard/): hosted Postgres database with restful API for usage with Supabase.js.
@@ -42,15 +42,15 @@ The `anon` key is your client-side API key. It allows "anonymous access" to your
4242
Create a file in this folder `.env.local`
4343

4444
```
45-
REACT_APP_SUPABASE_URL=
46-
REACT_APP_SUPABASE_ANON_KEY=
45+
VITE_SUPABASE_URL=
46+
VITE_SUPABASE_ANON_KEY=
4747
```
4848

4949
Populate this file with your URL and Key.
5050

5151
### 5. Run the application
5252

53-
Run the application: `npm run start`. Open your browser to `https://localhost:3000/` and you are ready to go 🚀.
53+
Run the application: `npm run dev`. Open your browser to the url indicated in the CLI (eg `https://localhost:5173/`) and you are ready to go 🚀.
5454

5555
## Supabase details
5656

0 commit comments

Comments
 (0)