This is a straightforward boilerplate for building REST APIs with ES6 and Express.
- ES6 support via babel
- CORS support via cors
- Body Parsing via body-parser
- Mongoose
- Helmet
- Compression
- LogDNA & Bunyan
- Sentry
- Forest Admin
- Prettier & Eslint
- Debug for logging to console
# clone it
git clone git@github.com:gautiert/nodejs-express-starter.git project-name
cd project-name
# Make it your own
rm -rf .git && git init && npm init
# Install dependencies
yarn
# Set environment
cp .env.example .env
# Start development live-reload server
PORT=8080 yarn run dev
# Build a production version
yarn run build
# Start production server:
PORT=8080 yarn start
MIT