Express & ES6 REST API Boilerplate
This is a straightforward boilerplate for building REST APIs with ES6 and Express.
- ES6 support via babel
- REST resources as middleware via resource-router-middleware
- CORS support via cors
- Body Parsing via body-parser
Tip: If you are using Mongoose, you can automatically expose your Models as REST resources using mongoose-resource.
Getting Started
# clone it git clone git@github.com:developit/express-es6-rest-api.gitcd express-es6-rest-api # Make it your own rm -rf .git && git init && npm init # Run it PORT=8080 npm start # With nodemon: PORT=8080 nodemon
License
MIT