Skip to content

fydemy/nextion

Repository files navigation

Nextion

A starter-kit for a dynamic landing page or personal website with Next.js and Notion as CMS (Content Management System). Simplify web routing with synchronization of Notion and Next root files.

demo

CMS/
├── home
├── about
├── blog
	├── will-developer-be-replaced-by-ai
	└── fullstack-roadmap-2025

🚀 Installation

  1. Make sure you have git and pnpm installed on your machine.

    git clone https://github.com/fydemy/nextion .
    pnpm install
  2. Go to Notion Integrations and click on the New integration button.

  3. Fill down the Integration Name, Assosiated workspace, and leave the type to Internal since we just need the API integration only.

  4. Copy the Internal Integration Secret and paste into the .env.local

    NOTION_TOKEN=ntn_XXX
    WORKSPACE_ID= // the parent id can be found in the url *in the square bracket (https://www.notion.so/fydemy/CMS-[2684e315713a80ae8eb0c39934603184])
    ROOT_FALLBACK= // the name of notion page for the / or root route
    NEXT_PUBLIC_GA_MEASUREMENT_ID= // can be found at analytics.google.com
    
  5. Get started by adding a Page and Subpages on the Assosiated workspace that you have chosen earlier. (*with lowercase and URL/slug rule)

    CMS [Workspace]/
    ├── home [Page]
    ├── about [Page]
    ├── blog [Page]
    ├── will-developer-be-replaced by-ai [SubPage]
    └── fullstack-roadmap-2025 [SubPage]
    
  6. Change your essential assets such as Logo and Favicon in the public folder with the same file name

  7. Any changes on the style, link, etc. can be added technically within the app folder

✨ Features

  1. Sync between next.js and notion file routing
  2. Add YAML configuration block code at the begining of the page content on Notion to configure the title and description metadata
    title: "Home"
    description: "We are a community-driven initiative focused on open-source software engineering and e-learning."
  3. Google analytics integrated with custom event!
  4. Responsive in any devices
  5. Provided plain-styled design with TailwindCSS and Lucide-react which make it easy to modify and improve based on your needs.

✅ Upcoming features

  • Provide more stying templates (1)
  • Bash scripting for configuration and setup

❌ Issues

  • No clickable link/UI subpage list in the page

✨ Community & Contribute

Visit our github profile and seek for a Discord link at fydemy.com.

About

A starter-kit of Next and Notion API as the CMS

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •