- First, run the development server:
npm run dev
# or
yarn dev
Install dependencies:
-
npm i gray-matter
-
npm i unified
-
npm i rehype-document
-
npm i [email protected]
-
npm i rehype-stringify
-
npm i remark-rehype
-
npm i rehype-pretty-code
-
npm install -D @tailwindcss/typography
npx create-next-app@latest
yarn add gray-matter remark remark-html
yarn add @tailwindcss/typography @tailwindcss/aspect-ratio
Project Overview: Next js 14
Features:
- Routing
- Defining Routes
- Pages and Layouts
- Linking and Navigating
- Loading UI and Streaming
- Error Handling
- Loading
- Redirecting
Next.js Integration:
The project utilizes Next.js, a popular React framework, for server-side rendering, routing, and other powerful features out of the box.
Tailwind CSS:
Tailwind CSS is used for styling the application, offering a utility-first approach for building custom designs quickly.
Gray-Matter:
Gray-Matter is a dependency used for parsing front-matter from Markdown files. This allows for easy extraction of metadata from content files.
Remark and Remark-HTML:
Remark and Remark-HTML are used for converting Markdown content to HTML, enabling developers to write content in Markdown format and render it seamlessly on the web.