nodejs-microservice-starter

by Abdizriel

:seedling: NodeJS RESTful API Microservice Starter

215 Stars 47 Forks Last release: over 4 years ago (v1.2.0) ISC License 69 Commits 2 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

NodeJS RESTful API Microservice Logo

NodeJS RESTful API Microservice Starter v1.2.0

This repository contains a full configuration that runs NodeJS RESTful API Microservice Starter.

Build Status Coverage Status Dependency Status Dev-Dependency Status

Requirements

Build for local development

You have to use the following command to start a development server:

npm run dev

See

package.json
for more details.

Build for staging and production environments

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.

Tests

Following tests libraries are used for unit/integration tests: * MochaJS * SinonJS * ChaiJS

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

Docker container

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.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.