close
The Wayback Machine - https://web.archive.org/web/20190322173438/https://github.com/developit/express-es6-rest-api
Skip to content
Image
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more
🔋 Starter project for an ES6 RESTful Express API.
Branch: master
Clone or download
Latest commit 9b8c005 Jan 22, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Image src #26 callback added on server start May 20, 2017
Image .gitignore Switch to eslint, bundle nodemon for development live-reload (`npm ru… Jul 24, 2016
Image Dockerfile
Image LICENSE Switch to eslint, bundle nodemon for development live-reload (`npm ru… Jul 24, 2016
Image Procfile Initial commit Mar 23, 2015
Image README.md
Image package.json add logger using morgan Feb 9, 2017

README.md

Express & ES6 REST API Boilerplate

This is a straightforward boilerplate for building REST APIs with ES6 and Express.

Tip: If you are using Mongoose, you can automatically expose your Models as REST resources using restful-mongoose.

Getting Started

# 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

cd 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

You can’t perform that action at this time.