This is a blog built with Next.js using Notion's API and TailwindCSS.
To obtain a token and the database id please visit the Notion Getting Started Guide.
Create a file called .env.local
in the root of the project and add the following lines:
NOTION_TOKEN=<your token>
NOTION_DATABASE_ID=<your database id>
Install dependencies
npm install
# or
yarn
Start the server with
npm run dev
# or
yarn dev
Go to http://localhost:3000.
The easiest way to deploy your Next.js app is to use Vercel.
Thanks to leerob and the samuelkraft for insipration.