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
- JWT Auth Token via jsonwebtokens
- User login/logout/forgot password/new password
- MongoDB via Mongoos
Tip: If you are using Mongoose, you can automatically expose your Models as REST resources using restful-mongoose.
# clone it
git clone [email protected]:shpleef/es6-api-starter.git
cd express-es6-rest-api
# Make it your own
rm -rf .git && git init && npm init
# Install dependencies
npm install
# Run it
PORT=8080 npm start
# With nodemon:
PORT=8080 nodemon
MIT