Getting ready

We're going to use the official Express application generator because this definitively identifies the standard defaults of an Express project.

Let's install express-genenerator and use it to create an Express project named app:

$ npm install -g express-generator
$ express app
$ cp app
$ npm install
Web Frameworks
In this recipe, we're hardening Express, in the There's more section we harden various other frameworks. For a comprehensive introduction to Web Frameworks see Chapter 7, Working with Web Frameworks.

A final step to getting ready, since this book is written using http://npm.im/standard, lint rules, is to automatically convert the generator to standard linting:

$ npm install -g standard
$ standard --fix
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset