# Installation
# Requirements
To install macaca-datahub, Node.js (opens new window) environment is required.
# Installation
Macaca datahub is distibuted through npm. To install it, run the following command line:
$ npm i macaca-datahub -g
# Common Usage
Start datahub server
$ datahub server
The server will create backup files with prefix 'macaca-datahub.data-backup-' for the database periodically.
# Run with docker
$ docker run -it -p 9200:9200 -p 9300:9300 macacajs/macaca-datahub
# Play Docker
Run as standalone just once service.
$ docker run -it --rm \
--name macaca-datahub \
-p 9200:9200 \
-p 9300:9300 \
macacajs/macaca-datahub
Run with existed DataHub's database in your host.
$ docker run -it --rm \
--name macaca-datahub \
-v $HOME/.macaca-datahub:/root/.macaca-datahub \
-p 9200:9200 \
-p 9300:9300 \
macacajs/macaca-datahub
Run as a service.
$ docker run \
--name macaca-datahub \
-v $HOME/.macaca-datahub:/root/.macaca-datahub \
-p 9200:9200 \
-p 9300:9300 \
-d macacajs/macaca-datahub
Build base image.
$ docker build --no-cache --pull -t="macacajs/macaca-datahub" .