Skip to content

Commit b7c55ea

Browse files
authored
docs(readme): add create tasks table section (#501)
1 parent 5b87b6c commit b7c55ea

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

demo/README.md

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,35 @@ Make sure to install the dependencies
2020
pnpm i
2121
```
2222

23+
### Supabase Setup
24+
2325
Create a project on [Supabase](https://supabase.com).
2426

2527
In 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+
2952
Create a GitHub Oauth Application on https://github.com/settings/applications/new
3053

3154
Grant 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

0 commit comments

Comments
 (0)