File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1-
2- NEXT_PUBLIC_SUPABASE_URL = YOUR_SUPABASE_URL
3- NEXT_PUBLIC_SUPABASE_ANON_KEY = YOUR_SUPABASE_ANON_KEY
4- PROJECT_ID = SUPABASE_REFERENCE_ID
1+ NEXT_PUBLIC_SUPABASE_URL = http://localhost:54321
2+ NEXT_PUBLIC_SUPABASE_ANON_KEY = <YOUR ANON KEY HERE>
3+ PROJECT_ID = <YOUR PROJECT ID HERE>
54
65LK_API_KEY = devkey
76LK_API_SECRET = secret
87
9- NEXT_PUBLIC_LK_TOKEN_ENDPOINT = PATH_TO_TOKEN_GENERATOR
10- NEXT_PUBLIC_LK_SERVER_URL = URL_TO_LIVEKITSERVER
8+ NEXT_PUBLIC_LK_TOKEN_ENDPOINT = /api/v1/auth/livekit
9+ NEXT_PUBLIC_LK_SERVER_URL = ws://localhost:7880
Original file line number Diff line number Diff line change 1- ## Getting Started
1+ ## Getting Started With Local Development
2+ 1 . Clone this repository
3+ ``` bash
4+ # HTTPS
5+ $ git clone https://github.com/FrostCord/FrostCord.git
6+
7+ # or
8+
9+ # SSH
10+ $ git clone git@github.com:FrostCord/FrostCord
11+ ```
12+ 2 . Navigate to the project directory
13+ ``` bash
14+ cd FrostCord
15+ ```
16+ 3 . Head to https://app.supabase.com and sign up
17+ 4 . Create a new project and navigate to the settings/api tab
18+ 5 . Copy your project anon key and project reference id (the string of characters in the subdomain of supabase.co)
19+ 6 . Open ` .env.example ` and set:
20+ - ` NEXT_PUBLIC_SUPABASE_ANON_KEY ` to the anon key you just copied
21+ - ` PROJECT_ID ` to the project reference id from the previous step
22+ 7 . Rename ` .env.example ` to ` .env.local `
23+ 8 . Install dependencies
24+ ``` bash
25+ npm install
26+ ```
27+ 9 . Prepare the local supabase containers
28+ ``` bash
29+ npx supabase start
30+ ```
31+ 10 . Install the livekit server by following instructions [ here] ( https://docs.livekit.io/getting-started/server-setup/ )
32+ 11 . Run livekit in dev mode
33+ ``` bash
34+ livekit-server --dev
35+ ```
36+ 12 . Navigate to http://localhost:54323/project/default/storage/buckets and create 2 public buckets:
37+ - avatars
38+ - servericons
39+ 13 . Start NextJS dev server
40+ ``` bash
41+ npm run dev
42+ ```
43+ 14 . Navigate http://localhost:3000 and sign up/log in
244
3- First, run the development server:
4-
5- ``` bash
6- npm run dev
7- # or
8- yarn dev
9- # or
10- pnpm dev
11- ```
12-
13- Rename the ` .env.example ` to ` .env.local ` and fill in the variables
14-
15- Open [ http://localhost:3000 ] ( http://localhost:3000 ) with your browser to see the result.
1645
1746You can start editing the page by modifying ` pages/index.tsx ` . The page auto-updates as you edit the file.
1847
Original file line number Diff line number Diff line change 6363 "autoprefixer" : " ^10.4.13" ,
6464 "eslint" : " ^8.32.0" ,
6565 "postcss" : " ^8.4.21" ,
66- "supabase" : " ^1.38.7 " ,
66+ "supabase" : " ^1.45.2 " ,
6767 "tailwindcss" : " ^3.2.4" ,
6868 "typescript" : " ^4.9.4"
6969 }
You can’t perform that action at this time.
0 commit comments