Node server boilerplate is to help you kick start your node server.
yarn
ornpm install
yarn build
to remove flow type annotationsyarn start:dev
to start server and watch files changes
yarn json-server
to create test json apihttp://localhost:3001/
docker build -t node-boilerplace-image .
to build a docker imagedocker run -p 80:8080 --name node-boilerplace-container node-boilerplace-image
to 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-server
to 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-base
extended, 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
dist
server folder that should be deployed. - husky to add
pre-commit
hook that will triggeryarn lint
&&yarn flow
to 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: