Skip to content

Install

Thiago da Rosa de Bustamante edited this page Mar 26, 2018 · 8 revisions

Requirements

Tree Gateway uses a Redis database to store it's configurations and to manage all nodes of it's cluster.

So, if you don't have a redis database already running, install it before going further.

For docker users, the easiest way to have a simple standalone redis is just running the following command:

$ docker run -p 6379:6379 -d --name redis redis

Installation

$ npm install tree-gateway -g

After this, you can run the gateway using the following command:

$ treeGateway

Or, for docker users:

$ docker run --name tree-gateway -p 8000:8000 --link redis:redis -d treegateway/tree-gateway:latest

Now, you can go to Configuration step.

Clone this wiki locally