@automattic/vip-go

1.1.0 • Public • Published

VIP Go Node Helpers

This package provides modules to help run Node.js applications on VIP Go.

Install

npm install --save @automattic/vip-go

Modules

The following is a list of modules included in this package:

  • server: a server that wraps your request handler or express app behind an easy to use interface
  • logger: a ready to use logger for your node applications with Kibana integration out of the box
  • newrelic: New Relic integration for applications on VIP Go
  • redis: a helper library to instantiate a Redis client compatible with VIP Go

Usage

const { server, logger, newrelic, redis } = require( '@automattic/vip-go' );

Please refer the documentation for each module (server | logger | newrelic) | redis) to learn more about how to use it.

New Relic is no longer a peer dependency of this module. Please remember to install New Relic separately if your app requires it.

Development

Using hooks

For development, we have some hooks running before each commit/push. To use them, execute the following command inside the repo after cloning it:

git config core.hooksPath hooks

Running tests

To run tests locally, make sure the Docker container is up and running:

docker-compose up

Readme

Keywords

none

Package Sidebar

Install

npm i @automattic/vip-go

Weekly Downloads

629

Version

1.1.0

License

ISC

Unpacked Size

14.3 kB

Total Files

12

Last publish

Collaborators

  • wpvip-bot
  • brunobasto
  • andrea-sdl
  • t2dw4t
  • wwa
  • mjangda
  • a8c
  • hanifn
  • saroshaga
  • parkcityj
  • nejclovrencic
  • chriszarate
  • robersongomes
  • mehmoodak
  • aagam94
  • alec-geatches
  • jblz
  • bsessions85
  • luiztiago
  • gandalfcoder