concept npm script in category docker

appears as: n npm script, npm scripts
Bootstrapping Microservices with Docker, Kubernetes and Terraform

This is an excerpt from Manning's book Bootstrapping Microservices with Docker, Kubernetes and Terraform.

Running the command npm start is the conventional way to start a Node.js application. This is a special case of an npm script that we can use to start our application. You can see in listing 2.6 that we’ve updated the package.json file to include a start script under the scripts field.

npm run start:dev

Listing 8.4 shows our package.json with a test script to run our Jest tests.