Web Analytics

blog

⭐ 156 stars English by Lily-404

🌐 Language

Jimmy's Blog

A minimalist personal blog system built with Next.js 15+, supporting online creation and static deployment.

Tech Stack

Features

Reader Side

Creation Side (Admin Panel)

Engineering Side

Project Structure

.
├── app/               # 页面、API 路由、Server Actions
│   ├── api/           # 接口(OAuth、统计、校验、Markdown 等)
│   ├── actions/       # 内容管理相关服务端动作
│   ├── posts/         # 文章详情页
│   └── page.tsx       # 首页
├── content/
│   ├── notes/         # 随笔
│   └── posts/         # 文章
├── components/        # React 组件
├── public/            # 静态资源
└── styles/            # 全局样式

Installation and Running

git clone https://github.com/Lily-404/blog.git
cd jimmy-blog

npm install

npm run dev

npm run build

Add a New Article

Method 1: Online Admin Panel (Recommended)

Method 2: Manually Add Files

---
title: 文章标题
date: YYYY-MM-DD
tags: ["标签1","标签2","标签3"]
---

Add Essays

---
date: YYYY-MM-DD
---

Configure Admin Dashboard

The admin dashboard uses GitHub OAuth for authentication, and only repository owners or collaborators can access it.

1. Create a GitHub OAuth App

2. Configure Environment Variables

Add the following environment variables in Vercel project settings:

3. Local Development Configuration

Create a .env.local file in the project root directory:

GITHUB_CLIENT_ID=你的Client_ID
GITHUB_CLIENT_SECRET=你的Client_Secret
GITHUB_OWNER=Lily-404
GITHUB_REPO=blog
NEXT_PUBLIC_BASE_URL=http://localhost:3000

4. Production Environment Configuration (Vercel)

In the Vercel project settings, make sure to set:

NEXT_PUBLIC_BASE_URL=https://www.jimmy-blog.top

⚠️ Note:

Deployment

The project is configured for deployment on Vercel and supports automatic deployment. Simply push the code to the GitHub repository and Vercel will automatically build and deploy.

Advantages of Using the Admin Panel

Project Analysis & Future Roadmap

Contribution

Issues and Pull Requests are welcome!

License

MIT License

--- Tranlated By Open Ai Tx | Last indexed: 2026-04-03 ---