Node server boilerplate is to help you kick start your node server.
- yarnor- npm install
- yarn buildto remove flow type annotations
- yarn start:devto start server and watch files changes
- yarn json-serverto create test json api- http://localhost:3001/
- docker build -t node-boilerplace-image .to build a docker image
- docker run -p 80:8080 --name node-boilerplace-container node-boilerplace-imageto run the container
- axios to handle all third party api calls if required ['GET','POST','PUT','DELETE', ...]
- express web application framework
- json-server no need to wait for third party api to start development, use json-serverto have test data and test third party api ready for use
- nodemon to restart server on any file change during development
- mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment.
- eslint the project contains eslint with eslint-config-airbnb-baseextended, to fix and flag javascript code errors.
- flow static type checker for javascript, flow-remove-types is used to remove flow type annotation to a distserver folder that should be deployed.
- husky to add pre-commithook that will triggeryarn lint&&yarn flowto make sure no bad commits are pushed
You can use any prefered editor, in case you are using Atom the following packages can help speed up your development process: