{"id":18905074,"url":"https://github.com/kenberkeley/msg-board-api","last_synced_at":"2025-04-15T04:12:29.346Z","repository":{"id":143891725,"uuid":"64587864","full_name":"kenberkeley/msg-board-api","owner":"kenberkeley","description":"A Simple Message Board / 简易留言板 RESTful API","archived":false,"fork":false,"pushed_at":"2016-08-26T07:15:57.000Z","size":13,"stargazers_count":92,"open_issues_count":0,"forks_count":30,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-15T04:12:21.696Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kenberkeley.png","metadata":{"files":{"readme":"README-CN.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-07-31T10:01:58.000Z","updated_at":"2024-12-03T13:25:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"cb5ef416-83ec-4612-a806-fcdcaeefd0e5","html_url":"https://github.com/kenberkeley/msg-board-api","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/kenberkeley%2Fmsg-board-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenberkeley%2Fmsg-board-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenberkeley%2Fmsg-board-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenberkeley%2Fmsg-board-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kenberkeley","download_url":"https://codeload.github.com/kenberkeley/msg-board-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249003955,"owners_count":21196793,"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":[],"created_at":"2024-11-08T09:10:35.171Z","updated_at":"2025-04-15T04:12:29.341Z","avatar_url":"https://github.com/kenberkeley.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 简易留言板 RESTful API\n[![build status][travis-image]][travis-url]\n[![Dependency Status][dep-image]][dep-url]\n[![Coverage Status][cov-img]][cov-url]\n\n## 主要用到的 Package\n\u003e 更多信息请看 `package.json`  \n  \n* [Express 4.x](https://github.com/expressjs/express)\n* [Express Auto Routes](https://github.com/kenberkeley/express-auto-routes)（自动路由）\n* [Lodash](https://github.com/lodash/lodash)\n* [UUID](https://github.com/broofa/node-uuid)\n\n****\n\n## 环境要求\n* Node ≥ 4\n* NPM ≥ 3\n\n****\n\n## 快速开始\n```\n$ git clone https://github.com/kenberkeley/msg-board-api.git\n$ cd msg-board-api\n$ npm install\n$ npm start\n\n\u003e msg-board-api@0.1.0 start /Users/kenberkeley/Documents/Desktop/msg-board-api\n\u003e node bin/start.js\n[AutoMount] delete /msg/:msgId\n[AutoMount] put /msg/:msgId\n[AutoMount] get /msg/:msgId\n[AutoMount] get /logout\n[AutoMount] post /login\n[AutoMount] get /user/\n[AutoMount] post /msg/\n[AutoMount] get /msg/\n[INFO] Msg board RESTful API listening at localhost:8989\n```\n\n****\n\n## APIs\n\u003e 见上\n\n****\n\n## JSON 数据格式\n```\n# 一个信息：\n{\n  \"id\":\"4d48e8d0\",\n  \"time\":1465291755485,\n  \"author\":\"ken\",\n  \"title\":\"hello world\",\n  \"content\":\"welcome to msg-board-api\"\n}\n\n# 用户 session：\n{\n  \"username\": \"ken\"\n}\n\n```\n\n****\n\n\n## 测试\n\u003e 请确认 [mocha](https://github.com/mochajs/mocha) 全局安装  \n\u003e 若无, `npm i mocha -g`\n\n```\n$ npm test\n...\n```\n\n[travis-image]: https://secure.travis-ci.org/kenberkeley/msg-board-api.svg?branch=master\n[travis-url]: https://travis-ci.org/kenberkeley/msg-board-api\n[dep-image]: http://david-dm.org/kenberkeley/msg-board-api.svg?style=flat-square\n[dep-url]: http://david-dm.org/kenberkeley/msg-board-api\n[cov-img]: https://coveralls.io/repos/github/kenberkeley/msg-board-api/badge.svg?branch=master\n[cov-url]: https://coveralls.io/github/kenberkeley/msg-board-api?branch=master\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenberkeley%2Fmsg-board-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenberkeley%2Fmsg-board-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenberkeley%2Fmsg-board-api/lists"}