Fetch from Notion database -> Randomly pick a keyword.
This project mainly use pnpm
+ Vite
+ React
+ typescript
.
Make sure that you've installed pnpm in your device. For pnpm installation, please refer to their official document.
You need to make src/utils/env.ts
which contains notion page id and api key. Write down as follows:
export const PAGE_ID = '<Our notion page id>';
export const NOTION_API_KEY = '<Our notion api key>';
You can check page id (32 characters) from the url of the notion page. Here's the way to check the page id from url.
You can make your own api key (https://www.notion.so/my-integrations/) or, can contact me if you're not the owner of the page.
After installation, execute following command in this project directory to setup node_modules
:
pnpm install
Execute following command for use vite dev server.
pnpm run dev
Feel free to contribute this project!
Write commit header as following format:
<type>: <description>
Here are some examples of commit headers:
feat: make hashtags
fix: info updating bug
chore: add vscode to gitignore
docs: update README.md
refactor: cache data for optimization
style: add semicolon
You can use your own <type>
if you want.
Currently, following git-flow branching strategy.
Therefore, the contributors should make branch from develop like:
<type>/<description>
# for example
feat/fetch-notion
Then, send PR to this develop branch.
To add some hashtags for a topic, please write the keyword as below:
<topic>| #<hashtag 1> #<hashtag2> #<hashtag3>...
For example:
Colors| #red #green #how_to_blend