{"id":14989361,"url":"https://github.com/jackhutu/jackblog-api-koa","last_synced_at":"2025-04-09T23:21:07.506Z","repository":{"id":63165960,"uuid":"44952289","full_name":"jackhutu/jackblog-api-koa","owner":"jackhutu","description":"Jackblog API Server Koa 版, 个人博客系统,  基于RESTful架构, 使用Node.js, Koa, MongoDB, Redis, Token Auth, 七牛云存储等.","archived":false,"fork":false,"pushed_at":"2017-08-24T03:04:30.000Z","size":649,"stargazers_count":310,"open_issues_count":1,"forks_count":75,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-02T21:12:51.491Z","etag":null,"topics":["jackblog","koa","mongodb","restful"],"latest_commit_sha":null,"homepage":"https://jackhu.top","language":"HTML","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/jackhutu.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-26T07:19:31.000Z","updated_at":"2025-04-02T07:24:21.000Z","dependencies_parsed_at":"2022-11-14T08:45:44.223Z","dependency_job_id":null,"html_url":"https://github.com/jackhutu/jackblog-api-koa","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackhutu%2Fjackblog-api-koa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackhutu%2Fjackblog-api-koa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackhutu%2Fjackblog-api-koa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackhutu%2Fjackblog-api-koa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jackhutu","download_url":"https://codeload.github.com/jackhutu/jackblog-api-koa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248126361,"owners_count":21051909,"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":["jackblog","koa","mongodb","restful"],"created_at":"2024-09-24T14:18:12.721Z","updated_at":"2025-04-09T23:21:07.468Z","avatar_url":"https://github.com/jackhutu.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jackblog api koa版\n\n[![build status][travis-image]][travis-url] \n[![Coverage Status][coveralls-image]][coveralls-url] \n[![Dependency Status](https://david-dm.org/jackhutu/jackblog-api-koa.svg)](https://david-dm.org/jackhutu/jackblog-api-koa) \n[![devDependency Status](https://david-dm.org/jackhutu/jackblog-api-koa/dev-status.svg)](https://david-dm.org/jackhutu/jackblog-api-koa#info=devDependencies)  \n\n[travis-image]: https://travis-ci.org/jackhutu/jackblog-api-koa.svg?branch=master\n[travis-url]: https://travis-ci.org/jackhutu/jackblog-api-koa\n\n[coveralls-image]: https://coveralls.io/repos/jackhutu/jackblog-api-koa/badge.svg?branch=master\u0026service=github\n[coveralls-url]: https://coveralls.io/github/jackhutu/jackblog-api-koa?branch=master\n\n## 此为2.2版,基于koa2.2.x\n\n## 简介\nJackblog 是使用 Node.js + MongoDB + Redis + 其它客户端框架开发的个人博客系统,前后端分离,仿简书模板.    \n服务端有: [express 版](https://github.com/jackhutu/jackblog-api-express) , [koa 版](https://github.com/jackhutu/jackblog-api-koa)         \n客户端有: [angular1.x 版](https://github.com/jackhutu/jackblog-angular1) , [angular2.x 版](https://github.com/jackhutu/jackblog-angular2) , [react redux 版](https://github.com/jackhutu/jackblog-react-redux) , [vue 版](https://github.com/jackhutu/jackblog-vue)    \n移动端有: [react native 版](https://github.com/jackhutu/jackblog-react-native-redux), [ionic2.0 版](https://github.com/jackhutu/jackblog-ionic2)  \n##### 此为服务端koa版, 为客户端提供api. \n\n## 环境准备\n```\nnode.js 7.6+\nmognodb 3.0+\nredis 2.8+\n```\n\n## 配置\n* 配置文件路径: ./server/config/env, 可将私有配置放入./server/config/env/private 下.\n* [七牛云存储配置](https://portal.qiniu.com/signup?code=3lg7fovhjx2ky)  \n\n```\n  qiniu:{\n    app_key:\"app_key\",\n    app_secret:\"app_secret\",\n    domain:\"domain\",          //七牛配置域名\n    bucket:\"bucket\"           //七牛空间名称  \n  },\n```\n* 七牛可以不配置, 但如果使用[后台管理功能 https://github.com/jackhutu/jackblog-admin](https://github.com/jackhutu/jackblog-admin), 必须配置七牛.\n\n## 开发\n```\n$ git clone git@github.com:jackhutu/jackblog-api-koa.git\n$ cd jackblog-api-koa\n$ npm install\n$ npm run serve\n```\n\n#### 使用docker容器部署所需的要环境变量  \n```\nMONGO_PORT_27017_TCP_ADDR\nMONGO_USERNAME\nMONGO_PASSWORD\nREDIS_PORT_6379_TCP_ADDR\nREDIS_PORT_6379_TCP_PORT\nREDIS_PASSWORD\nQINIU_APP_KEY\nQINIU_APP_SECRET\nQINIU_APP_DOMAIN\nQINIU_APP_BUCKET\nGITHUB_CLIENT_ID\nGITHUB_CLIENT_SECRET\nGITHUB_CALLBACK_URL\nWEIBO_CLIENT_ID\nWEIBO_CLIENT_SECRET\nWEIBO_CALLBACK_URL\nQQ_CLIENT_ID\nQQ_CLIENT_SECRET\nQQ_CALLBACK_URL\nINITDATA\n```\n\n## 测试\n```\n$ npm test\n```\n配合客户端测试的测试模式\n```\n$ npm run serve:test\n```\n\n## License\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackhutu%2Fjackblog-api-koa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackhutu%2Fjackblog-api-koa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackhutu%2Fjackblog-api-koa/lists"}