A product created from Next.js and Notion.
MIT License
A web application built with Next.js, integrating Notion for seamless content management.
This project is a robust web application utilizing Next.js and Notion, designed to enhance user experience and streamline content handling. It combines the latest web technologies to provide both static and dynamic content generation.
Clone the repository:
git clone https://github.com/tuanductran/site.git
cd site
Install the dependencies:
pnpm install
Create a .env
file from the example:
cp .env.example .env
Populate the .env
file with the necessary environment variables:
NOTION_DATABASE_ID
: Your Notion database ID.ARTICLES_DATABASE_ID
: Database ID for articles.BOOKS_DATABASE_ID
: Database ID for books.CV_NOTION_TOKEN
: Token for accessing CV database.CV_NOTION_DATABASE_ID
: Database ID for CV entries.NOTION_TOKEN
: Token for Notion API access.POSTGRES_URL
: URL for connecting to your PostgreSQL database.Go to Notion Integrations:
Create a New Integration:
Share Database with Integration:
Retrieve Database IDs:
notion.so/
and before the question mark, if present.Development: Launch the development server:
pnpm dev
Build: Prepare the application for production:
pnpm build
Start: Run the production server:
pnpm start
Lint: Run ESLint to check for code issues:
pnpm lint
Fix Lint Issues: Automatically resolve linting problems:
pnpm lint:fix
Type Checking: Execute TypeScript type checks:
pnpm typecheck
We welcome contributions! Feel free to open issues or submit pull requests for new features or bug fixes.
This project is licensed under the MIT License. For more details, see the LICENSE file.