tutts / es6-express-mongoose-passport-rest-api

Lightweight boilerplate for Node RESTful API, ES6, Express, Mongoose and Passport 🎁
35 stars 8 forks source link
api boilerplate es6 express javascript mongoose node passport restful

Node boilerplate

This is my node boilerplate starter kit. I will continue to update with the latest tech to help make make node services super easy and efficient to kick start.

Whats out the box?

Frameworks

Developer tools

Instructions

Install mongodb and fire up the server

mongod

Install yarn. Not used yarn yet? Do its awesome... and required

npm install -g yarn

Pull down the repository

git clone https://github.com/tutts/node-es6-express-mongoose-passport

Run yarn in the root of your project to install its dependencies

yarn

Server

Start in development mode http://localhost:4040/health-check

yarn dev

Build the distributable

yarn build

Build the distributable + start node server http://localhost:8080/health-check

yarn start

Tests

Run tests or code coverage in Jest

yarn test
yarn test:coverage

Running lint (deprecated)

ESLint has now been removed in favour of Prettier. As of version 1.0.0, semi colons are now optional and disabled as default.

yarn lint
yarn lint:watch
yarn lint:fix // attempts to fix your lint issues for you

Todo

Inspired by KunalKapadia and Developit