MCPcopy Index your code
hub / github.com/acmenlei/next-blog

github.com/acmenlei/next-blog @v1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0 ↗ · + Follow
65 symbols 314 edges 89 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

关于技术栈

博客前台:nextjs + typescript + antd

博客后台管理系统:vue2 + element-ui + echarts

博客后端:nodejs + mysql + redis

关于这个blog的一些改善

  1. 之前该仓库是用Vue写的,现在用next进行了重构(Vue版的也不再使用了),主要是为了有更好的SEO支持,代码风格也更加规范一些
  2. 功能减少了相册、DEMO案例等等、其余的功能都是差不多的,UI风格延续之前Vue版本的。
  3. 完善了管理系统的功能,新增了权限管理与数据中台,文章编辑页面新增了富文本编辑器。

项目仓库以及浏览地址

前台博客浏览地址

后台博客管理系统浏览地址

后台博客管理系统仓库

博客的后端仓库

开发模式

启动前端

先安装依赖 然后执行以下命令

yarn dev 或者 npm run dev

启动后端

  1. 启动后端之前请先启动redis, 后端依赖redis
# 启动命令
redis-server
  1. 导入必要的mysql结构,以及启动mysql,表结构在后端仓库自取
  2. 完成以上操作后即可启动后端
yarn start

打包发布

  1. 先打包
yarn build
  1. 启动 ```shell yarn start

Extension points exported contracts — how you extend this code

LoginInfo (Interface)
(no doc)
src/common/interface/login.ts
CustomAxiosResponse (Interface)
(no doc)
src/common/interface/axios.ts
ActionExtenal (Interface)
(no doc)
src/common/interface/action.ts

Core symbols most depended-on inside this repo

post
called by 16
src/services/config.tsx
getCurrentFontColor
called by 11
src/utils/theme.ts
successMessage
called by 11
src/common/message.ts
warningMessage
called by 10
src/common/message.ts
errorMessage
called by 6
src/common/message.ts
getCurrentCardBackground
called by 5
src/utils/theme.ts
formatTime
called by 5
src/utils/format.ts
formatTimeFromNow
called by 5
src/utils/format.ts

Shape

Function 54
Enum 5
Interface 3
Class 2
Method 1

Languages

TypeScript100%

Modules by API surface

src/utils/theme.ts10 symbols
src/services/modules/login.ts6 symbols
src/services/modules/article.ts5 symbols
src/services/modules/comment.ts4 symbols
src/services/modules/articleComment.ts4 symbols
src/utils/format.ts3 symbols
src/pages/_document.tsx3 symbols
src/common/message.ts3 symbols
src/store/modules/login/actionCreators.ts2 symbols
src/store/modules/home/actionCreators.ts2 symbols
src/services/config.tsx2 symbols
src/components/app-header/index.tsx2 symbols

For agents

$ claude mcp add next-blog \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact