A dynamic and easily maintainable portfolio website powered by Notion as a CMS. The portfolio fetches data from a Notion database and renders it seamlessly using Next.js.
Template Credits : https://magicui.design/docs/templates/portfolio
- Duplicate these database templates
- Add your details
- Create a new notion integration here with any name and of type internal.
- Now, in both your databases add this integration
- Copy the integration secret and paste in your env.
- Copy the Portfolio database id, Personal database id and paste in your env.
To get the database id click copy link on your database
For example: www.notion.so/suhayba/19c97a45977480d6b3ffd537e3ca13b1?v=19c97a45977481a4acf7000c692619d5&pvs=4
The characters before ? is your database id 19c97a45977480d6b3ffd537e3ca13b1
- Frontend: Vercel
Notion CMS
- Clone the repository:
git clone https://github.com/swebi/portfolio.git
- Install dependencies:
pnpm install
- Set up environment variables in a .env file:
NOTION_TOKEN = <Integration Secret> NOTION_PORTFOLIO = <Portfolio DB ID> NOTION_PERSONAL = <Personal DB ID> REVALIDATE = <Time Interval for ISR in seconds>
- Start the server:
pnpm dev