This is a Next.js project bootstrapped with create-next-app
.
How to use this template.
- Run the
create-next-app
npx create-next-app@latest -e https://github.com/Jareechang/nextjs-code-template
Then change into the folder
- Create and define the
.env
Use the .env.example
as a reference.
BTY_CODE_API_TOKEN=<token>
BTY_CODE_API_ENDPOINT=<endpoint>
- Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
- Go to http://localhost:3000
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
.