File tree Expand file tree Collapse file tree 1 file changed +23
-6
lines changed
Expand file tree Collapse file tree 1 file changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,35 @@ Make sure to install the dependencies
2020pnpm i
2121```
2222
23+ ### Supabase Setup
24+
2325Create a project on [ Supabase] ( https://supabase.com ) .
2426
2527In your Supabase project, make sure to create the ` tasks ` table with the following fields:
2628
2729![ tasks_table] ( https://user-images.githubusercontent.com/7290030/159882068-c88b96da-6e2f-4d9b-8523-4a4270b1b05e.png )
2830
31+ You can run the following query to create the ` tasks ` table in your SQL Editor:
32+
33+ ``` sql
34+ CREATE TABLE tasks (
35+ id SERIAL PRIMARY KEY ,
36+ created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
37+ user UUID NOT NULL ,
38+ title TEXT ,
39+ completed BOOLEAN DEFAULT FALSE
40+ );
41+ ```
42+
43+ Go to your supabase project settings, API section and get the project API key and url and fill the ` .env ` with them:
44+
45+ ```
46+ SUPABASE_URL="https://example.supabase.com"
47+ SUPABASE_KEY="<your_key>"
48+ ```
49+
50+ ### GitHub Oauth Setup
51+
2952Create a GitHub Oauth Application on https://github.com/settings/applications/new
3053
3154Grant read access to Email addresses under User Permissions
@@ -38,12 +61,6 @@ Then, enable the GitHub Oauth Provider in your Supabase project (Authentication
3861
3962![ oauth_github] ( https://user-images.githubusercontent.com/904724/160397056-53099b19-1673-402d-86a2-4c18618a6ab3.png )
4063
41- Go to your supabase project settings, API section and get the project API key and url and fill the ` .env ` with them:
42-
43- ```
44- SUPABASE_URL="https://example.supabase.com"
45- SUPABASE_KEY="<your_key>"
46- ```
4764
4865## Development
4966
You can’t perform that action at this time.
0 commit comments