jbatty
v1.0.7
Published
Structure to build an REST API using Express.js
Downloads
4
Maintainers
Readme
Express REST API ES6 application generator.
Installation
$ npm install -g express-restapi-es6
Quick Start
Create the app:
$ express-restapi-es6 yournameapp
Install dependencies:
$ cd yournameapp
$ npm install
Start your app at http://localhost:3000/api/value
$ npm start
Development mode (Nodemon)
$ npm run dev
Run test
$ npm run test
Command Line Options
This generator can also be further configured with the following command line flags.
--version output the version number
-e, --ejs add ejs engine support
--pug add pug engine support
--hbs add handlebars engine support
-H, --hogan add hogan.js engine support
-v, --view <engine> add view <engine> support (dust|ejs|hbs|hjs|jade|pug|twig|vash) (defaults to jade)
--no-view use static html instead of view engine
-c, --css <engine> add stylesheet <engine> support (less|stylus|compass|sass) (defaults to plain css)
--git add .gitignore
-f, --force force on non-empty directory
-h, --help output usage information
Used modules
- Babel-cli https://github.com/babel/babel/tree/master/packages/babel-cli
- babel-preset-es2015 https://github.com/babel/babel/tree/master/packages/babel-preset-es2015
- Cors https://github.com/expressjs/cors
- Express https://github.com/expressjs/express
- Helmet https://github.com/helmetjs/helmet
- Winston https://github.com/winstonjs/winston
- Mocha https://github.com/mochajs/mocha
- Chai https://github.com/chaijs/chai
- Chai-http https://github.com/chaijs/chai-http
- Morgan https://github.com/expressjs/morgan
- Nodemon https://github.com/remy/nodemon