Web Analytics

blog

⭐ 156 stars German by Lily-404

🌐 Sprache

Jimmys Blog

Ein minimalistisches persönliches Blog-System, entwickelt mit Next.js 15+, das Online-Erstellung und statische Bereitstellung unterstützt.

Technologiestack

Funktionsmerkmale

Leserseite

Autorenseite (Admin-Backend)

Engineering-Seite

Projektstruktur

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

Installation und Ausführung

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

npm install

npm run dev

npm run build

Neue Artikel hinzufügen

Methode 1: Online-Admin-Backend (empfohlen)

Methode 2: Datei manuell hinzufügen

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

Notiz hinzufügen

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

Verwaltung des Admin-Backends konfigurieren

Das Admin-Backend verwendet GitHub OAuth zur Authentifizierung. Nur Repository-Eigentümer oder Mitwirkende haben Zugriff.

1. Erstellen einer GitHub OAuth App

2. Umgebungsvariablen konfigurieren

Füge im Vercel-Projekt folgende Umgebungsvariablen hinzu:

3. Lokale Entwicklung konfigurieren

Erstelle im Projektstamm die Datei .env.local:

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. Produktionsumgebungskonfiguration (Vercel)

Stellen Sie in den Vercel-Projekteinstellungen sicher, dass Sie Folgendes festlegen:

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

⚠️ Achtung:

Deployment

Das Projekt ist für Vercel Deployment konfiguriert und unterstützt automatische Bereitstellung. Einfach den Code ins GitHub-Repository pushen, Vercel baut und deployed automatisch.

Vorteile der Nutzung des Admin-Backends

Projektanalyse & zukünftige Planung

Beitrag

Issues und Pull Requests sind willkommen!

Lizenz

MIT License

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