2323
2424## Intro
2525
26- ` V2EX API Bridge ` : 提供论坛公开API的封装和私有API的挖掘实现,目前已支持 ` 登录,签到,发帖,回帖 ` 等非官方API功能.
26+ ` V2EX API Bridge ` : 提供论坛公开API的封装和私有API的挖掘实现,目前已支持 ` 登录,签到,发帖,回帖,账户,消息 ` 等非官方API功能.
27+ * see ` app/router.js ` to find full router config & demo api links
2728
2829- Thanks for:
2930- [ official API] (https://www.v2ex.com/p/7v9TEc53 )
3233## Development
3334
3435- require Node.js 7.6.0+ (async & await)
35- - recommend yarn install
36+ - recommend ` yarn install `
3637- recommend [ nvm] ( https://github.com/creationix/nvm ) - the Node.js Version Manager
3738
3839``` bash
3940$ npm install
4041$ npm run dev
4142```
42- * see ` app/router.js ` to find full router config & demo api links
43-
4443## Features
4544
46- - ✔︎ Full APIs Wrapped
47- - ✔︎ RESTful Style
48- - ✔︎ 30+ Case, 100%+ Unit Test(` BDD ` )
49- - ✔︎ Hot Reload in Dev
50- - ✔︎ pre-commit hook to run cov & build docs and host in Github Pages @see ` package.json `
45+ - ✔︎ Full RESTful Style APIs Wrapped
46+ - ✔︎ 40+ Case, 95%+ Unit Test(` BDD ` ) with Docs
47+ - ✔︎ Server Hot Reload in Dev
48+ - ✔︎ pre-commit hook to run codecov & build jsdoc, host in Github Pages @see ` package.json#pre-commit `
49+ - ✔︎ CI Support
50+
51+ ## Docs
52+
53+ - ✔︎ Public API Docs - [ go] (https://indexxuan.github.io/v2ex-api-bridge/api/index.html )
54+ - ✔︎ Project Dev Docs - [ go] (https://indexxuan.github.io/v2ex-api-bridge/project/index.html )
5155
5256## Unit Test
5357
@@ -57,16 +61,18 @@ $ npm run dev
5761
5862## npm scripts
5963
60- - Use ` npm start ` to run server
64+ - Use ` npm start ` to run server in prod mode
6165- Use ` npm run dev ` to dev
62- - Use ` npm run lint ` to run eslint(eslint not native support es@next now)
66+ - Use ` npm run lint ` to run eslint(eslint not native support es@next now, so... )
6367- Use ` npm test ` to run unit test
64- - Use ` npm run cov ` to run cov
68+ - Use ` npm run cov ` to run code coverage
6569
6670## Todo
6771
68- - make ` pwa ` using the APIs
6972- parse the ` response html ` to get more private APIs
73+ - improve ` docs ` and 'codecov'
74+ - make ` pwa ` using the APIs
75+ - make it more ` egg best practice `
7076
7177## Links
7278
@@ -77,4 +83,7 @@ $ npm run dev
7783- [ thunk-mocha] (https://npmjs.com/thunk-mocha )
7884- [ power-assert] (https://github.com/power-assert-js/power-assert )
7985- [ istanbul] (https://github.com/gotwarlost/istanbul )
86+ - [ circleci] (https://circleci.com/ )
87+ - [ codecov] (https://codecov.io/ )
88+ - [ jsdoc] (https://github.com/jsdoc3/jsdoc )
8089
0 commit comments