$ npm install express-generator -g
/*
Use the application generator tool, express-generator, to quickly create an application skeleton.
You can run the application generator with the npx command (available in Node.js 8.2.0).
*/
npx express-generator
## Command
$ npx express-generator
: 'For earlier Node versions, install the application generator as a global
npm package and then launch it':
$ npm install -g express-generator
$ express
## Display the command options with the -h option:
$ express -h
npx express-generator --view=no-view my-app
$ npm install -g express-generator
$ npm install -g express-generator
$ express
$ npm install -g express-generator
process.env.NODE_ENV = 'test';
let chai = require('chai');
let chaiHttp = require('chai-http');
let server = require('../app');
let should = chai.should();
chai.use(chaiHttp);
describe('/GET book', () => {
it('it should GET all the books', (done) => {
chai.request(server)
.get('/first')
.end((err, res) => {
res.should.have.status(200);
done();
});
});
});
$ npm install