sweta134 / nextjs-code-template

Next.js code template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a Next.js project bootstrapped with create-next-app.

Getting Started

How to use this template.

  1. Run the create-next-app
npx create-next-app@latest -e https://github.com/Jareechang/nextjs-code-template

Then change into the folder

  1. Create and define the .env

Use the .env.example as a reference.

BTY_CODE_API_TOKEN=<token>
BTY_CODE_API_ENDPOINT=<endpoint>
  1. Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
  1. Go to http://localhost:3000

Defining posts

All posts are kept in src/entries/*.md.

Each markdown entry are automatically added into the page.

So, if you want a new post, just add it into src/entries.

About

Next.js code template

License:MIT License


Languages

Language:TypeScript 90.3%Language:CSS 7.7%Language:JavaScript 2.0%