2.1.4 • Published 2 years ago

ihub-framework-ts v2.1.4

Weekly downloads
109
License
ISC
Repository
gitlab
Last release
2 years ago

iHub Framework (WIP)

iHub Framework allows you to quickly build nodejs microservices with support for all the stack used by the iHub ecosystem.

Requirements

You need to have Docker and Docker Compose installed to develope your microservice, you can develop locally with NodeJS 8+ but we strongly discouraged since your service is going to be deployed with kubernetes.

Installing

First you need to create a .npmrc or change your local npm registry to point for our internal private registry:

registry=https://registry.infracommerce.com.br/repository/npm-local/

Then on your project folder:

$ npm i -S ihub-framework-ts

Graceful Shutdown

The framework treats the shutting down as graceful so we wont lose any data. The ideal is to monitor and adjust the SIGTERM timeout according to each application, the default timeout of docker commands is 10 seconds but depending of your application this time can not be enough, so this must be profiled and align with the responsible of deployment so he can make the correct adjustments.

If you like to test your application and change the docker timeout:

docker stop ----time=30 foo

Environment Variables

Project

PROJECT_NAME NODE_ENV

Logger

Elasticsearch

LOGGER_ELASTICSEARCH_ENABLED LOGGER_ELASTICSEARCH_URL LOGGER_ELASTICSEARCH_LEVEL

Console

LOGGER_CONSOLE_LEVEL

2.1.4

2 years ago

2.1.3

2 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.9.9

3 years ago

1.9.8

3 years ago

1.9.7

3 years ago

1.9.6

3 years ago

1.9.5

3 years ago

1.9.4

3 years ago

1.9.1

3 years ago

1.9.0

3 years ago

1.8.6

3 years ago

1.8.5

3 years ago

1.9.3

3 years ago

1.8.4

3 years ago

1.9.2

3 years ago

1.8.2

4 years ago

1.8.1

4 years ago

1.8.0

4 years ago

1.8.3

4 years ago

1.7.3

4 years ago

1.7.8

4 years ago

1.7.7

4 years ago

1.7.6

4 years ago

1.7.5

4 years ago

1.7.4

4 years ago

1.7.2

4 years ago

1.7.1

4 years ago

1.7.0

4 years ago

1.6.4

4 years ago

1.6.3

4 years ago

1.6.2

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.5.8

4 years ago

1.5.7

4 years ago

1.5.6

4 years ago

1.5.5

4 years ago

1.5.4

4 years ago

1.5.3

4 years ago

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.3

4 years ago