Express es6 rest api
:battery: Starter project for an ES6 RESTful Express API.
Express & ES6 REST API Boilerplate ================================== The project is written primarily in JavaScript, distributed under the MIT License license, first published in 2015. It has gained significant community traction with 2,444 stars and 541 forks on GitHub. Key topics include: api, boilerplate, cors, es2015, es6.
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 restful-mongoose.
Getting Started
sh# clone it git clone git@github.com:developit/express-es6-rest-api.git cd express-es6-rest-api # Make it your own rm -rf .git && git init && npm init # Install dependencies npm install # Start development live-reload server PORT=8080 npm run dev # Start production server: PORT=8080 npm start
Docker Support
shcd express-es6-rest-api # Build your docker docker build -t es6/api-service . # ^ ^ ^ # tag tag name Dockerfile location # run your docker docker run -p 8080:8080 es6/api-service # ^ ^ # bind the port container tag # to your host # machine port
License
MIT
Contributors
Showing top 9 contributors by commit count.
This article is auto-generated from developit/express-es6-rest-api via the GitHub API.Last fetched: 5/31/2026