My personal blog.
Using Next.js v14 App Router and React Server Components. Styling with TailwindCSS.
Using @discublog/api to query GitHub repository discussions and rendering Markdown with @mdx-js/mdx.
# Start development server
pnpm dev
# Build for production
pnpm build
# Start production server
pnpm start
# Run tests
pnpm test
# Run tests with UI
pnpm test:ui
# Generate test coverage
pnpm test:coverage
# Lint code
pnpm lint
# Analyze bundle size
pnpm analyzeImportant
Make sure to open discussions on the new repository after creating it in "Create Git Repository" and before adding environment variables.
Important
After enabling Discussions, please make sure to start a new discussion, and feel free to choose any topic.
- Enable your blog repository discussions.
- Write a new discussion.
- Make sure you have the GitHub Profile repository like
hunt-alone/hunt-alone. - Modify site metadata.
- Modify Google verification here.
- Modify the Giscus script here.
- Modify the resume page.
- Put your avatar file in
src/images/avatar.webp. - Put your favicon file in
src/app/favicon.ico. - Put your icons in
public/icon.
create .env file in root folder.
GITHUB_TOKEN=<required>
OPENAI_API_KEY=<optional>
REPO_NAME=<required>
REPO_OWNER=<required>
If you need Open AI to generate your article summaries, delete summary.json in root folder and paste your OPENAI_API_KEY in .env.