es6-express-mongoose-passport-rest-api
v1.0.0
Published
Boilerplate for Node, ES6, Express, Mongoose and Passport
Readme
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
- Node 7 + ES6 (Babel)
- Express
- Passport
- Mongoose
- Joi
Developer tools
- Jest
- Eslint
- Docker
- Husky (Githooks)
Instructions
Install mongodb and fire up the server
mongodInstall yarn. Not used yarn yet? Do its awesome... and required
npm install -g yarnPull down the repository
git clone https://github.com/tutts/node-es6-express-mongoose-passportRun yarn in the root of your project to install its dependencies
yarnServer
Start in development mode http://localhost:4040/health-check
yarn devBuild the distributable
yarn buildBuild the distributable + start node server http://localhost:8080/health-check
yarn startTests
Run tests or code coverage in Jest
yarn test
yarn test:coverageRunning lint
yarn lint
yarn lint:watch
yarn lint:fix // attempts to fix your lint issues for youTodo
- [ ] add dotenv
Inspired by KunalKapadia and Developit
