DarrylBrooks97 / notion-starter-template

Home Page:https://notion-starter-template.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Notion Starter Template 📝

A simple Notion template showcasing how to fetch user's notion pages on their behalf

What's inside?

  • Zod
  • Drizzle ORM
  • Vercel Postgres

The setup

  1. Clone repo

  2. Create a public Notion integration

  3. Update .env.example with your Notion keys

  4. 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()
    )
    
  5. Update .env.example with your auto generated pgTable keys

  6. Setup Drizzle with Vercel's helpful docs

  7. Run [npm/yarn/pnpm] dev

About

https://notion-starter-template.vercel.app


Languages

Language:TypeScript 93.3%Language:JavaScript 6.2%Language:CSS 0.5%