A simple Notion template showcasing how to fetch user's notion pages on their behalf
- Zod
- Drizzle ORM
- Vercel Postgres
-
Clone repo
-
Create a public Notion integration
-
Update
.env.example
with your Notion keys -
Create a Vercel Postgres Database (or any db of your choice)
4.1 Create your pgTable with the following schema:
create table users ( id uuid primary key, accessToken varchar, workspaceId varchar, workspaceName varchar, workspaceIcon varchar, createdAt timestamp default now() )
-
Update
.env.example
with your auto generated pgTable keys -
Setup Drizzle with Vercel's helpful docs
-
Run [npm/yarn/pnpm] dev