-
Get a Notion Integration ID:
- Go to Notion Developers and create a new integration.
- Copy the Integration ID.
-
Set up Environment Variables:
-
Create a
.envfile in the root directory of the project. -
Add your Notion Integration ID to the
.envfile:NOTION_TOKEN=your_integration_id_here
-
-
Install Dependencies:
-
Run the following command to install the necessary dependencies:
pnpm install
-
-
Start the Server:
-
Run the following command to start the server:
pnpm start
-
- Get Database Details:
-
To get details of a database, use the following routes:
http://localhost:3000/<database_id or database_alias> -
To get details of a page, use the following routes:
http://localhost:3000/<database_id or database_alias>/<page_id>
-
Make sure to replace database_id, database_alias, and page_id with the actual values.
This project is licensed under the MIT License.