{"id":18878392,"url":"https://github.com/zxysilent/blog","last_synced_at":"2025-10-08T07:38:47.916Z","repository":{"id":43642541,"uuid":"153705699","full_name":"zxysilent/blog","owner":"zxysilent","description":"一个go、echo、xorm、vue  typescript vite 开发的快速、简洁、美观、前后端分离的个人博客系统(blog)、也可方便二次开发为CMS(内容管理系统)和各种企业门户网站。","archived":false,"fork":false,"pushed_at":"2025-03-06T07:34:22.000Z","size":45021,"stargazers_count":722,"open_issues_count":6,"forks_count":191,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-05-29T08:53:37.487Z","etag":null,"topics":["admin","api","blog","echo","go","golang","iviewui","naive-ui","npm","pinia","spa","typescript","vite","vue","vue-cli","vuex","xorm"],"latest_commit_sha":null,"homepage":"https://blog.zxysilent.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zxysilent.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}},"created_at":"2018-10-19T00:47:26.000Z","updated_at":"2025-05-29T05:30:46.000Z","dependencies_parsed_at":"2024-06-20T03:01:16.158Z","dependency_job_id":"899f3d22-a899-4831-95a9-487055b6caff","html_url":"https://github.com/zxysilent/blog","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/zxysilent/blog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxysilent%2Fblog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxysilent%2Fblog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxysilent%2Fblog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxysilent%2Fblog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zxysilent","download_url":"https://codeload.github.com/zxysilent/blog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxysilent%2Fblog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278909714,"owners_count":26066887,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["admin","api","blog","echo","go","golang","iviewui","naive-ui","npm","pinia","spa","typescript","vite","vue","vue-cli","vuex","xorm"],"created_at":"2024-11-08T06:26:30.347Z","updated_at":"2025-10-08T07:38:47.849Z","avatar_url":"https://github.com/zxysilent.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 一个go语言实现的博客 \r\n## A blog written in the go programming language \r\n\r\n## 多用户支持，权限管理\r\n## Multi user support, permission management\r\n\r\n\r\n### 技术栈\r\n### Technology stack \r\n- golang [https://golang.google.cn](https://golang.google.cn)\r\n- vue3+vite4+pinia+typescript\r\n- xorm [https://xorm.io](https://xorm.io)\r\n- echo [https://echo.labstack.com](https://echo.labstack.com)\r\n- naiveui [http://naiveui.com](http://naiveui.com)\r\n- UI 修改于 [https://firekylin.org](https://firekylin.org)\r\n\r\n## 预览地址\r\n## Preview address \r\n[https://blog.zxysilent.com](https://blog.zxysilent.com)\r\n\r\n## 仓库地址\r\n## Repository  address \r\n[github(https://github.com/zxysilent/blog)](https://github.com/zxysilent/blog)\r\n\r\n[gitee(https://gitee.com/zxysilent/blog)](https://gitee.com/zxysilent/blog)\r\n## 开发原因 \r\n- 现在自己使用博客系统不方便管理、部署和二次开发\r\n- 渲染速度到不到想要的效果\r\n\r\n## 计划功能\r\n实现```blog```功能,方便二次开发\r\n- [x] 博文管理\r\n- [x] 分类管理\r\n- [x] 标签管理\r\n- [x] 系统设置\r\n- [x] 管理主页\r\n- [x] 笔记模式\r\n- [x] 用户管理\r\n- [x] 角色管理\r\n- [x] 全局配置\r\n- [x] 个性化配置\r\n- [x] 笔记分享\r\n- [x] 配置字典\r\n## 说明\r\n\r\n- 替换markdown 编辑器为富文本编辑器`web/src/components/Editor/Richtext`即可作为简单`CMS`\r\n- 注意配置使用的数据库\r\n    ```\r\n    # mysql\\sqlite\r\n    type = \"sqlite\"\r\n    # uid:pass@tcp(host:port)/dbname?charset=utf8mb4\u0026parseTime=true\u0026loc=Local\r\n    mysql = \"root:root@tcp(127.0.0.1:3306)/blog?charset=utf8mb4\u0026parseTime=true\u0026loc=Local\"\r\n    sqlite = \"file:blog.db\"\r\n    ```\r\n## 讨论群\r\n🐧🐧 1059282178\r\n\r\n## 使用方式-直接部署\r\n```\r\ngit clone -b next --depth=1 https://github.com/zxysilent/blog.git\r\n```\r\n若要部署，请修改关键信息[token、用户名、密码等]\r\n数据库自带文章内容请在部署前删除\r\n\r\n### 部署界面\r\n- 安装依赖```npm install```\r\n- 修改```.env.development```中的```VITE_APP_SRV```为自己的服务地址\r\n- 发布```npm run build```会自动发布到```dist```目录下面\r\n- 友链里面第一个为后台登陆地址默认用户名```zxysilent```,密码```zxyslt```，可自行数据库修改\r\n### 部署服务\r\n- 配置```conf.toml```数据库信息\r\n- 还原```data```目录下```blog.sql```数据库\r\n*数据库自带文章内容请在部署前删除*\r\n- 安装依赖```go mod tidy```\r\n- 编译可执行程序 \r\n    - 普通开发编译版本```go build```\r\n    - 编译不带日志和swagger文档版本```go build -tags=prod```体积大幅度减小,日志请用```nginx、caddy```等```web```服务器记录\r\n    - 若需要日志且不需要文档，请自定义开发或提issues\r\n- 服务器部署\r\n    - windows 直接运行\r\n    - linux 普通方式```nohup ./blog\u003e\u003enohup.log 2\u003e\u00261 \u0026```\r\n\r\n### 评论配置\r\n- 配置项目 sys_global(表).comment(值) \r\n- 配置说明 [https://github.com/gitalk/gitalk](https://github.com/gitalk/gitalk)\r\n\r\n## 使用方式-自定义开发\r\n```\r\ngit clone https://github.com/zxysilent/blog.git\r\n```\r\n若要部署，请修改关键信息[token、用户名、密码等]\r\n*数据库自带文章内容请在部署前删除*\r\n\r\n### 开发界面\r\n- 安装依赖```npm install```\r\n- 开发运行```npm run serve```\r\n- 浏览器打开 [http://127.0.0.1:8082/](http://127.0.0.1:8082/)\r\n- 友链里面第一个为后台登陆地址默认用户名```zxysilent```,密码```zxyslt```，可自行数据库修改\r\n###  开发服务\r\n- 配置```conf.toml```数据库信息\r\n- 还原```data```目录下```blog.sql```数据库\r\n*数据库自带文章内容请在部署前删除*\r\n- 安装依赖```go mod tidy```\r\n- 安装 swag   \r\n    - ```go get -u github.com/swaggo/swag/cmd/swag```\r\n- 运行```swag init```生成api文档\r\n- 运行后台```go run```\r\n- 浏览器默认访问 [http://127.0.0.1:8085/](http://127.0.0.1:8085/)\r\n\r\n## 渲染性能\r\n![image](./data/imgs/benchmark.png)\r\n\r\n## 效果展示\r\n\r\n### 前台\r\n- 首页\r\n![image](./data/imgs/front-0.png)\r\n- 归档\r\n![image](./data/imgs/front-1.png)\r\n- 关于\r\n![image](./data/imgs/front-2.png)\r\n\r\n### 后台\r\n- 登录\r\n![image](./data/imgs/backend-0.png)\r\n- 首页\r\n![image](./data/imgs/backend-1.png)\r\n- 文章\r\n![image](./data/imgs/backend-2.png)\r\n- 文章编辑\r\n![image](./data/imgs/backend-3.png)\r\n- 配置\r\n![image](./data/imgs/backend-4.png)\r\n- 权限\r\n![image](./data/imgs/backend-5.png)\r\n- 授权\r\n![image](./data/imgs/backend-6.png)\r\n- 笔记模式\r\n![image](./data/imgs/backend-7.png)\r\n- 笔记分享\r\n![image](./data/imgs/backend-8.png)\r\n## Donation\r\nIf this project help you a lot, you can support us by:\r\n\r\nAliPay\r\n\r\n![image](./data/imgs/alipay.png)\r\n\r\nWechat Pay\r\n\r\n![image](./data/imgs/wechatpay.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzxysilent%2Fblog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzxysilent%2Fblog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzxysilent%2Fblog/lists"}