{"id":19542219,"url":"https://github.com/pythonzm/blog","last_synced_at":"2025-04-23T00:17:07.956Z","repository":{"id":36211832,"uuid":"188371344","full_name":"pythonzm/blog","owner":"pythonzm","description":"后端api采用go语言框架gin编写，前端使用vue + element ui编写","archived":false,"fork":false,"pushed_at":"2024-07-12T10:44:21.000Z","size":9605,"stargazers_count":61,"open_issues_count":2,"forks_count":14,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-23T00:16:57.112Z","etag":null,"topics":["docker","docker-compose","elment-ui","gin","golang","vue"],"latest_commit_sha":null,"homepage":"https://www.poorops.com","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pythonzm.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}},"created_at":"2019-05-24T07:09:53.000Z","updated_at":"2024-10-10T12:29:53.000Z","dependencies_parsed_at":"2024-01-03T10:43:33.593Z","dependency_job_id":"2bf484ab-0037-45bf-9d49-4ddd55b1141e","html_url":"https://github.com/pythonzm/blog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonzm%2Fblog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonzm%2Fblog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonzm%2Fblog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonzm%2Fblog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pythonzm","download_url":"https://codeload.github.com/pythonzm/blog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250343960,"owners_count":21415042,"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","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":["docker","docker-compose","elment-ui","gin","golang","vue"],"created_at":"2024-11-11T03:13:44.104Z","updated_at":"2025-04-23T00:17:07.934Z","avatar_url":"https://github.com/pythonzm.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"### 后端API使用[gin](https://github.com/gin-gonic/gin)编写，前端页面使用element-ui，前端直接借鉴了这个大佬的项目：https://github.com/PanJiaChen/vue-admin-template\n\n\u003e 整体就是以黑白为主，不会做手机适配，所以手机浏览布局会有问题，如果哪位大佬感兴趣做一下手机适配就非常感谢了\n\n## [线上地址：https://www.poorops.com](https://www.poorops.com)\n\n## [Docker快速部署](https://github.com/pythonzm/blog/wiki/Docker-部署)\n\n## 标准部署\n\n### 准备\n  1. 安装mysql（略）\n  2. 安装redis（略）\n  3. 安装elastic（略），主要用于全文检索功能，如果不用全文检索可以不安装\n  3. 创建blog数据库\n  \n  ```\n  mysql\u003e create database blog DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;\n  mysql\u003e grant all privileges on blog.* to YOURUSER@'%' identified by 'YOUPASSWORD';\n  mysql\u003e flush privileges;\n  ```\n  \n### 安装\n  1. go get github.com/pythonzm/blog\n  2. 生成数据表\n  \n  ```\n  cd backend\n  bin/goose -dir migrations/ mysql \"YOURUSER:YOURPASSWORD@tcp(YOURIP:YOURPORT)/blog?charset=utf8\" up\n  ```\n  \u003e 更多goose使用方法，参考：https://github.com/pressly/goose\n  \n### 启动后端\n1. 重命名配置文件 mv backend/conf/config.yml.example backend/conf/config.yml\n2. 修改 backend/conf/config.yml 中的配置信息\n\n`go run main.go`\n  \n### 启动前端\n  \u003e cd fronted\n  1. npm install\n  2. npm run dev\n  \u003e 如果出现类似 Command failed: git clone --mirror -q git://github.com/adobe-webplatform/eve.git\n  \u003e npm ERR! fatal: read error: Invalid argument 的报错\n  \u003e 首先将本地git版本升级到最新的，如果还有问题则执行如下命令\n  \u003e git config --global url.\"https://\".insteadOf git:// \n  \n  #### 构建生产环境\n  npm run build:prod\n\n### 访问\n  前台界面：$YOURIP:9528/#/\n  \n  后台界面: $YOURIP:9528/#/admin     默认用户名密码：admin/12346\n\n## 2024-07-09更新\n搜索功能接入Algolia，默认按照文章标题搜索\n如果要开启Algolia搜索，需要同时在前端和后端开启\n* 前端开启：编辑 fronted\\src\\settings.js 中相关配置\n* 后端开启：编辑 backend\\conf\\config.yml 中相关配置\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonzm%2Fblog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythonzm%2Fblog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonzm%2Fblog/lists"}