Skip to content

IndexXuan/v2ex-api-bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

V2EX

v2ex-api-bridge

Build Status Vim Best Editor

js-standard-style

Intro

V2EX API Bridge: 提供论坛公开API的封装和私有API的挖掘实现,目前已支持 登录,签到,发帖,回帖 等非官方API功能.  

Development

  • 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.js to find full router config & demo api links

Features

  • ✔︎ Full APIs Wrapped
  • ✔︎ RESTful Style
  • ✔︎ 30+ Case, 90%+ Unit Test(BDD)
  • ✔︎ Hot Reload in Dev

Unit Test

  • mocha, thunk-mocha, power-assert, istanbul is build-in to egg-bin, so you can just use it.
  • power-assert is very powerful, No API is the best API.
  • see egg unit test docs for more detail.

npm scripts

  • Use npm start to run server
  • Use npm run dev to dev
  • Use npm run lint to run eslint(eslint not native support es@next now)
  • Use npm test to run unit test
  • Use npm run cov to run cov

Todo

  • make pwa using the APIs
  • parse the response html to get more private APIs

Links

About

V2EX APIs - powered by Egg(Node.js 7.6.0+) docs:https://indexxuan.github.io/v2ex-api-bridge/api/index.html

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published