This is a very small project that aims to embed into Notion.so. Its goal is to randomly pick a page from a database, like a flashcard tool 🪧
Before, you need to create an integration to get an Notion API key. To this follow the documentation
Now you have to link the database where you want to get the informations from and your new integration. To this, go to your database page in Notion, click on "..." then click on "Add connections" and choose your integration
And since you are on Notion get the id of your database from the url:
https://www.notion.so/myworkspace/a8aec43384f447ed84390e8e42c2e089?v=...
|--------- Database ID --------|
You are ready to deploy it :
- Fork it
- Go to Vercel.com
- Create new project
- Select this repo
- Choose Next.js as techo
- Create the env variable NOTION_API_TOKEN that contains your integration secret token
- Create the env variable NOTION_DATABASE that contains your database ID
- Click on "Deploy"
Well done ! 🚀