This project showcases one of the many possibilities of NotionAPI.
Here I created an express
server and connected to a database on Notion
that has rows and columns with different info on it.
The end result is an interactable quiz with the info that we just fetch!
If you would like to run this project, you'll need to create a .env
file in the root directory and inside it you should add your NotionAPI key
and your Database ID
like so
NOTION_API_KEY = [Here you should insert your key]
NOTION_API_DATABASE = [Here you should insert your key]
If you don't know how to get your key, go to developers.notion.com, press My Integrations, choose New Integration and once you fill all the info, you should get a Internal Integration Token
.
If you don't know how to get your Database id, check the Where can I find my database's ID? of this NotionAPI doc