Node.js backend boilerplate with:
- Express;
- Unit test with Jest;
- Airbnb JavaScript Style;
- Local development with Docker;
Docker
and docker-compose
is required. Follow this link to get docker on your platform.
Build the image:
make build
If you change the Dockerfile
you will need to rebuild it.
Then install dependencies:
make install
Run server:
make start
open http:https://localhost:5000
Then go ahead and edit files inside src
.
nodemon
will watch your modifications and reload automatically. The reload time depends on your docker machine speed.
keep tests under test
directory and run:
make test