V2EX API Bridge: 提供论坛公开API的封装和私有API的挖掘实现,目前已支持 登录,签到,发帖,回帖,账户,消息 等非官方API功能.
- see
app/router.jsto find full router config & demo api links
- Thanks for:
- [official API] (https://www.v2ex.com/p/7v9TEc53)
- [V2EX-API] (https://github.com/djyde/V2EX-API)
- require Node.js 7.6.0+ (async & await)
- recommend
yarn install - recommend nvm - the Node.js Version Manager
$ npm install
$ npm run dev- ✔︎ Full RESTful Style APIs Wrapped
- ✔︎ 40+ Case, 95%+ Unit Test(
BDD) with Docs - ✔︎ Server Hot Reload in Dev
- ✔︎ pre-commit hook to run codecov & build jsdoc, host in Github Pages @see
package.json#pre-commit - ✔︎ CI Support
- ✔︎ Public API Docs - [go] (https://indexxuan.github.io/v2ex-api-bridge/api/index.html)
- ✔︎ Project Dev Docs - [go] (https://indexxuan.github.io/v2ex-api-bridge/project/index.html)
mocha,thunk-mocha,power-assert,istanbulis build-in toegg-bin, so you can just use it.power-assertis very powerful, No API is the best API.- see egg unit test docs for more detail.
- Use
npm startto run server in prod mode - Use
npm run devto dev - Use
npm run lintto run eslint(eslint not native support es@next now, so...) - Use
npm testto run unit test - Use
npm run covto run code coverage
- parse the
response htmlto get more private APIs - improve
docsand 'codecov' - make
pwausing the APIs - make it more
egg best practice
- [V2EX] (https://www.v2ex.com/)
- [egg] (https://github.com/eggjs/egg)
- [egg-bin] (https://github.com/eggjs/egg-bin)
- [mocha] (http://mochajs.org)
- [thunk-mocha] (https://npmjs.com/thunk-mocha)
- [power-assert] (https://github.com/power-assert-js/power-assert)
- [istanbul] (https://github.com/gotwarlost/istanbul)
- [circleci] (https://circleci.com/)
- [codecov] (https://codecov.io/)
- [jsdoc] (https://github.com/jsdoc3/jsdoc)