Lincest / neodb-notion-sync

sync neodb to notion database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sync neodb to notion

my notion page | neodb page

1 - create notion database:

all needed properties:

  • Name
  • Type
  • Status
  • Score
  • Comment
  • Link
  • Completed
  • Tags

2 - set envs

touch .env

the .env should include:

NOTION_API_KEY = secret_xxxxxx
NOTION_API_DATABASE = xxxxxxxxxxxxxxxxxxx
NEODB_TOKEN = xxxxxxxxxxxxxxxxxx

where to get those envs?

https://www.notion.so/myworkspace/a8aec43384f447ed84390e8e42c2e089?v=...
                                  |--------- Database ID --------|

3 - run

first change index.js to set what you want to sync, then:

npm install
npm start
  • fetchCompletedXXXAndSync(false) or fetchCompletedXXXAndSync():

Incremental Sync (use ./data/xxx.csv to keep track of the last sync time)

  • fetchCompletedXXXAndSync(true)

Full Sync (will create or update all data in notion database)

About

sync neodb to notion database


Languages

Language:JavaScript 100.0%