V2EX API Bridge: 提供论坛公开API的封装和私有API的挖掘实现,目前已支持 登录,签到,发帖,回帖 等非官方API功能.
- 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- see
app/router.jsto find full router config & demo api links
- ✔︎ Full APIs Wrapped
- ✔︎ RESTful Style
- ✔︎ 30+ Case, 90%+ Unit Test(
BDD) - ✔︎ Hot Reload in Dev
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 - Use
npm run devto dev - Use
npm run lintto run eslint(eslint not native support es@next now) - Use
npm testto run unit test - Use
npm run covto run cov
- make
pwausing the APIs - parse the
response htmlto get more private APIs
- [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)