{"id":42919208,"url":"https://github.com/cumt-robin/fullstack-blog","last_synced_at":"2026-04-11T18:21:52.415Z","repository":{"id":44446389,"uuid":"397991252","full_name":"cumt-robin/fullstack-blog","owner":"cumt-robin","description":"始于 vite + vue3 + ts + node 的全栈博客，目前也提供了 react19 版本实现，采用 pnpm monorepo 架构，支持自动化部署，优秀的开发和部署体验。","archived":false,"fork":false,"pushed_at":"2026-02-27T13:47:33.000Z","size":6314,"stargazers_count":203,"open_issues_count":16,"forks_count":50,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-02-27T18:46:07.478Z","etag":null,"topics":["ant-design-vue","antd","docker","docker-compose","element-plus","express","nestjs","nodejs","pnpm","react18","react19","typescript","vite","vue-cli","vue3"],"latest_commit_sha":null,"homepage":"https://blog.wbjiang.cn/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cumt-robin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2021-08-19T15:32:50.000Z","updated_at":"2026-02-27T13:45:39.000Z","dependencies_parsed_at":"2024-07-07T09:28:55.427Z","dependency_job_id":"c34dc0bd-7806-4bc4-ae2e-8d5d425c835c","html_url":"https://github.com/cumt-robin/fullstack-blog","commit_stats":null,"previous_names":["cumt-robin/fullstack-blog","cumt-robin/vue3-ts-blog-frontend"],"tags_count":130,"template":false,"template_full_name":null,"purl":"pkg:github/cumt-robin/fullstack-blog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cumt-robin%2Ffullstack-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cumt-robin%2Ffullstack-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cumt-robin%2Ffullstack-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cumt-robin%2Ffullstack-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cumt-robin","download_url":"https://codeload.github.com/cumt-robin/fullstack-blog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cumt-robin%2Ffullstack-blog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29961864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T05:59:08.471Z","status":"ssl_error","status_checked_at":"2026-03-01T05:58:04.208Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ant-design-vue","antd","docker","docker-compose","element-plus","express","nestjs","nodejs","pnpm","react18","react19","typescript","vite","vue-cli","vue3"],"created_at":"2026-01-30T17:34:16.413Z","updated_at":"2026-04-11T18:21:52.408Z","avatar_url":"https://github.com/cumt-robin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fullstack-blog ![release](https://img.shields.io/github/v/release/cumt-robin/fullstack-blog) ![license](https://img.shields.io/github/license/cumt-robin/fullstack-blog) ![stars](https://img.shields.io/github/stars/cumt-robin/fullstack-blog) ![building](https://img.shields.io/github/actions/workflow/status/cumt-robin/fullstack-blog/release.yml) ![lang](https://img.shields.io/github/languages/count/cumt-robin/fullstack-blog) ![commit](https://img.shields.io/github/last-commit/cumt-robin/fullstack-blog) ![release-date](https://img.shields.io/github/release-date/cumt-robin/fullstack-blog)\n\nHello，这是[Vue3+TS+Node打造个人博客](https://juejin.cn/column/7177402980180688952)开源全栈项目，最初采用 Vue3 + Vue CLI + Typescript + NodeJS Express 实现，目前已经涵盖了多种技术实现，无论你是 Webpack/Vite 使用者，或者是 Vue/React 爱好者，这里都有你想要的内容，你甚至可以从这里学会多种框架的使用。\n\n除了最初采用的 Express，后端目前也提供了 NestJS 实现，并且后续会主要维护 NestJS 版本。\n\n如果你是一个前端开发者，还不太清楚后端开发或者全栈的概念，请一定不要错过这个项目，我相信它会对你的工作或者求职有所帮助！\n\n本项目最新代码采用 pnpm monorepo 架构搭建，工程化能力和开发体验都比较不错，目前支持：\n\n- [x] Pnpm monorepo 架构，单仓库开发全栈项目的极致体验\n- [x] Changeset：最先进的 monorepo 版本管理工具\n- [x] Vite 支持：跟进最新的 Vue 生态\n- [x] Prettier + ESLint + Stylelint 全项目支持，统一的代码风格，与低质量代码说拜拜\n- [x] Commitizen: git cz 交互式提交\n- [x] Commitlint: commit message 规范校验\n- [x] Husky + lint-staged 代码入库质量检查\n- [x] Docker Compose 开发和生产环境完整支持，一致的开发体验\n- [x] Github Actions 支持，构建和部署全部自动化\n- [x] unplugin-vue-components 支持识别和导入组件，按需加载\n\n如果你需要找到旧版的前后端工程独立仓库代码，其中前端部分可以查看 2.X 版本，具体请查看[v2 分支](https://github.com/cumt-robin/fullstack-blog/tree/v2)。后端部分可以打开[express-blog-backend](https://github.com/cumt-robin/express-blog-backend)。\n\n小程序源码是独立仓库维护的，可以打开[blog-weapp](https://github.com/cumt-robin/blog-weapp)。\n\n## 在线体验\n\n点击[Tusi博客](https://blog.wbjiang.cn/)体验一把。\n\n## 相关博客\n\n我写了一系列博客专栏，介绍如何使用 Vue3+TS+Node 打造个人博客。[点击前往专栏](https://juejin.cn/column/7177402980180688952)。\n\n## Monorepo 介绍\n\n为了让大部分前端开发者能够上手本项目，我们在 pnpm monorepo 支持了多种技术框架，你可以根据需要组合使用。\n\n其中前端部分：\n\n- [x] Vite + Vue3 + Pinia + TypeScript + Sentry + PWA + Playwright E2E Test: 见目录 app/vite-vue3，线上效果点击[blog.wbjiang.cn](https://blog.wbjiang.cn/)\n- [x] Vue CLI + Vue3 + Vuex + TypeScript + SCSS: 见目录 app/webpack-vue3\n- [x] CRA + React18 + TypeScript + React-Redux + Redux Toolkit + Tailwindcss + Styled Components: 见目录 app/cra-react18\n- [x] Vite + React19 + TypeScript + Antd@6 + Zustand + Tailwindcss + Styled Components: 见目录 app/vite-react19\n- [ ] Vite + Nuxt\n\n后端部分：\n\n- [x] NestJS + MySQL + TypeORM + class-validator: 见目录 app/nest-server，目前持续维护\n- [x] Express + MySQL + express-validator: 见目录 app/express-server，不再持续维护\n\n## Features\n\n- 文章分页\n- 文章详情，支持TOC目录\n- 热门文章\n- 分类及分类下文章\n- 标签及标签下文章\n- 留言板\n- 文章评论区\n- 文章时间轴\n- 在线聊天室\n- OpenAI聊天机器人\n- JWT 认证（新版）\n- Session 认证（旧版）\n- PWA 支持\n- Jest 单元测试\n- Playwright E2E 测试\n- 后台维护功能：文章管理，创作，评论管理及审核，留言管理及审核，分类管理，标签管理\n\n## 全局依赖\n\n```shell\npnpm add -g commitizen\n```\n\n## git 配置\n\nGit 在提交代码时会将换行符从 CRLF（Windows 风格）转换为 LF（Unix 风格），但在检出（checkout）代码时不进行任何转换。这是一种适用于跨平台开发（Windows、Linux、macOS）的配置，用于在 Git 仓库中始终保持统一的 Unix 风格换行符 (LF)，同时确保本地文件在检出时保留原始的换行符。\n\n```shell\ngit config core.autocrlf input\n```\n\n## 安装项目依赖\n\n```shell\npnpm install\n```\n\n## 环境变量\n\n针对 vite-vue3 工程，Sentry 涉及到私密信息 dsn 等，需要以环境变量提供。\n\n开发环境下，在 vite-vue3 目录下新建 .env.local 文件，内容模板如下，请替换成你自己的 Sentry DSN：\n\n```\nVITE_APP_SENTRY_DSN=https://xxxxx.ingest.us.sentry.io/xxxxx\nVITE_APP_SENTRY_ORG=xxx\nVITE_APP_SENTRY_PROJECT=xxx\nVITE_APP_SENTRY_TOKEN=xxx\nVITE_APP_WEB_PUSH_PUBLIC_KEY=xxx\n```\n\n项目打包时，如果是在本地打包，由于可以读取到 .env.local 文件，不需要再另外处理；\n\n如果是在 CI/CD 中打包，需要通过环境变量指定 VITE_APP_SENTRY_DSN，\n\n比如 github actions，需要在仓库的 Settings / Actions secrets and variables 中新增相关变量，比如 VITE_APP_SENTRY_DSN，\n\n或者以 secrets 的方式定义，然后在 workflow 文件中通过 env 来引用 secrets.VITE_APP_SENTRY_DSN。\n\n## 容器化运行项目【推荐】\n\n见[docker-ops.md](./docker-ops.md)。\n\n## 非容器化运行项目\n\n见[legacy-ops.md](./legacy-ops.md)。\n\n## web 前端部署\n\n目前已采用云存储静态站点部署 + CDN加速\n\n## 服务端部署\n\n目前采用云服务器 Docker 容器化部署\n\n## 联系我\n\n如果有遇到其他问题，也可以[联系我](https://qncdn.wbjiang.cn/%E5%85%AC%E4%BC%97%E5%8F%B7/qrcode_new.jpg)交流。\n\n如果本项目对你工作或者求职有所帮助，请留下您的 star 多多支持我，免费开源不易，让这个项目帮到更多的人，多谢！\n\n\u003cimg src=\"https://qncdn.wbjiang.cn/%E5%85%AC%E4%BC%97%E5%8F%B7/qrcode_new.jpg\" style=\"width:200px;height:200px\" /\u003e\n\n## 反馈建议\n\n如果你对本项目有一些建议或者想法，可以在[issue](https://github.com/cumt-robin/fullstack-blog/issues)提出，非常感谢！\n\n## 贡献者\n\n\u003ca href=\"https://github.com/cumt-robin/fullstack-blog/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=cumt-robin/fullstack-blog\" /\u003e\n\u003c/a\u003e\n\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=cumt-robin/fullstack-blog\u0026type=Date)](https://star-history.com/#cumt-robin/fullstack-blog\u0026Date)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcumt-robin%2Ffullstack-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcumt-robin%2Ffullstack-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcumt-robin%2Ffullstack-blog/lists"}