/NotionWeb

๐Ÿ”ฅ My personal website for taking notes.

Primary LanguageTypeScriptMIT LicenseMIT

dinhanhthi.com

Next.js 14+ ๐Ÿค Tailwind CSS ๐Ÿค Notion as CMS ๐Ÿค notion-x.

๐ŸŽ‰ The step-by-step tutorial to create a website like this is HERE! Feel free to mention my assistance when you embark on creating your unique site. Appreciate it!

๐Ÿงก If what I do is helpful to you for some reason, please consider supporting me with some cups of coffee. Thank you!

๐Ÿšจ There are individuals who have forked my repository and published their confidential information directly in the .env.local or example.env.local files. I urge you to please STOP DOING THIS, as it will expose your secret information to the world!

Previous versions

๐Ÿ‘‰ Version 1 (Jekyll): v1.dinhanhthi.com -- source.
๐Ÿ‘‰ Version 2 (Jekyll): v2.dinhanhthi.com -- source.
๐Ÿ‘‰ Version 3 (Jekyll): v3.dinhanhthi.com -- source.
๐Ÿ‘‰ Version 4 (Gatsby, canceled at 60%): demo of what I did -- source.
๐Ÿ‘‰ Version 5 (11ty): v5.dinhanhthi.com -- source.

Dev

๐Ÿšจ You have to install globally Nodejs >=18 (recommend using nvm) and Yarn first.

# install
yarn

# clone submodule notion-x (when installing only)
git submodule update --init --recursive

# ud notion-x
git submodule update --recursive --remote
# or yarn getlib

# dev
yarn dev # port 3003

# build
yarn build

# serve (need to build first)
yarn start # port 3003

# reinstall all
yarn reinstall

# clean
yarn clean

# prettier
yarn prettier

# clear yarn cache (helpful sometimes)
yarn cache clean

Deploy to vercel,

vercel dev # like yarn dev

vercel build

# preview only
vercel deploy

# production
vercel --prod