Skip to content

yeximm/hexo-workspace

Repository files navigation

hexo-workspace

这是一个基于 Vben + FastAPI 的 Hexo 博客后台管理项目。

当前阶段

当前后端已从旧的文章、图片、命令接口重置,第一阶段只搭建低耦合的系统配置和环境检测能力:

  • 系统配置文件:workspace-backend/config/system.yaml
  • Hexo 项目路径:hexo-blog
  • 环境检测接口:POST /api/system/environment/detect
  • 系统配置读取接口:GET /api/system/config
  • 前端页面:http://127.0.0.1:8000/settings/system

环境检测结果不写入后端文件,前端首次进入页面时调用检测接口,之后将结果缓存在浏览器 localStorage 中。

技术路线

  • 前端:workspace-web,Vben Admin + Ant Design Vue。
  • 后端:workspace-backend,FastAPI + Pydantic。
  • 配置:YAML 文件,不使用 MySQL、Redis 或 SQLite。
  • 博客目录:hexo-blog

单服务访问方式

前端构建产物输出到 workspace-backend/webview,FastAPI 同时提供前端静态页面和后端接口。

cd workspace-web
pnpm build

构建完成后启动后端:

cd workspace-backend
uv run uvicorn app.main:app --reload --host 127.0.0.1 --port 8000

访问地址:

  • 前端页面:http://127.0.0.1:8000
  • 系统设置页:http://127.0.0.1:8000/settings/system
  • 后端接口文档:http://127.0.0.1:8000/docs

About

基于 Vben + FastAPI 的 Hexo 博客管理系统。

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages