You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/nextjs-blog-cms/README.md
+13-7Lines changed: 13 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,17 +64,23 @@ pnpm --ignore-workspace i
64
64
65
65
### 2. Database setup
66
66
67
-
This project needs a database to store the blog posts and workflows.
67
+
This project needs a database to store the blog posts and workflows using Supabase.
68
68
69
69
Follow the below steps to get a database up and running with Supabase:
70
70
71
-
1. Go to [your Supabase Dashboard](https://supabase.com/dashboard/projects) and create a new project
72
-
1. While your database is being created, update your `.env.local` and fill the `NEXT_PUBLIC_SUPABASE_URL` and `NEXT_PUBLIC_SUPABASE_ANON_KEY`
73
-
1. Open the SQL Editor from the left side navigation, and copy the content of the `examples/nextjs-blog-cms/supabase/schema.sql` file
74
-
1. Still in the SQL Editor, create a new snippet and do the same with the `examples/nextjs-blog-cms/supabase/seed.sql` file
75
-
1. Navigate to the Table Editor, you should see two tables: `blog_posts` and `workflows`
71
+
1. Install Supabase CLI
76
72
77
-
You are all set, your database is ready to be used!
73
+
```
74
+
npm install -g supabase
75
+
```
76
+
77
+
2. Create a new project
78
+
79
+
```
80
+
supabase start
81
+
```
82
+
83
+
3. Copy the `.env.example` file to `.env` and fill the `NEXT_PUBLIC_SUPABASE_URL` and `NEXT_PUBLIC_SUPABASE_ANON_KEY` with the values given by Supabase.
0 commit comments