使用 Express.js、Mongoskin 和 Mocha 构建的 REST API
Node.js REST API Example with MongoDB, Mongoskin, Express 3 and 4
master branch
Full tutorial:
Brief instructions:
$ git clone https://github.com/azat-co/rest-api-express.git
$ cd rest-api-express
$ npm install
$ node express.jsIn a new terminal window:
$ mocha express.test.jsOr, if you don't have mocha installed globally:
$ ./node_modules/mocha/bin/mocha express.test.jsYou can use package.json commands:
$ npm start
$ npm testexpress3 branch
Full tutorial:
Brief instructions:
$ git clone https://github.com/azat-co/rest-api-express.git
$ cd rest-api-express
$ git checkout express3
$ npm install
$ node express.jsin a new window
$ mocha express.test.jsor (if you don't have mocha installed globally):
$ ./node_modules/mocha/bin/mocha express.test.js暂无开放 Issues,或尚未同步最近议题。