This repository contains a full configuration that runs NodeJS RESTful API Microservice Starter.
You have to use the following command to start a development server:
npm run dev
See package.json
for more details.
Use following command to build project:
npm run build
Use following command to start project on staging and production environments:
npm start
See package.json
for more details.
Following tests libraries are used for unit/integration tests:
Tests are kept next to source with following pattern *.spec.js
Use following command to run tests:
npm test
Use following command to run tests coverage:
npm run coverage
There is available Docker container and Docker Composer if you would like to run many NodeJS Microservices.
Build API Microservice by using following command:
npm run build
Then use following command to build Docker containers:
docker-compose up -d --build
See Dockerfile
and docker-compose.yml
for more details.