You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> The script required PostgresQL for local cache of imported notes.
7
+
8
+
## How to run
9
+
10
+
1. Get `NOTION_TOKEN` and give access to your note where the data will be imported.
11
+
-[Create your integration in Notion](https://developers.notion.com/docs/create-a-notion-integration#getting-started)
12
+
2. Run the script specifying the folder with notes
13
+
14
+
```bash
15
+
export NOTION_TOKEN 'secret_notion_token'
16
+
export DB_HOST 'localhost'
17
+
export DB_NAME 'notion'
18
+
export DB_USER 'notion'
19
+
export DB_PASSWORD 'notion-password'
20
+
21
+
node index.js --import /path/no/notes
22
+
```
23
+
24
+
3. Some notes may not import correctly. [Solutions](https://github.com/tryfabric/martian#working-with-notions-limits). After correcting the original notes that were imported with an error, they can be imported again
0 commit comments