Skip to content

modernpoacher/zashiki

Repository files navigation

@modernpoacher/zashiki

Zashiki

Configuration Variables

All parameters can be provided as command line arguments.

Hapi Server

{
  "server": {
    "host": "0.0.0.0",
    "port": 5001
  }
}

MongoDB

{
  "mongo": {
    "uri": "mongodb://127.0.0.1:27017/zashiki-transport",
    "options": {}
  }
}

Karakuri

{
  "karakuri": {
    "baseUrl": "http://127.0.0.1:5003/api/v1"
  }
}

Catbox

{
  "catbox": {
    "cache": {
      "client": {
        "uri": "mongodb://127.0.0.1:27017/",
        "partition": "zashiki-mechanism"
      }
    }
  }
}

Environment Variables

All parameters can be provided as command line arguments.

API_PROTOCOL='http'
API_HOST='127.0.0.1'
API_PORT='5002'
API_PATH='api'
API_VERSION='v1'

Build

At the command line execute:

npm run build

Start

At the command line execute:

npm start

Or:

npm start -- \
  --server:host 0.0.0.0 \
  --server:port 5001 \
  --mongo:uri mongodb://127.0.0.1:27017/zashiki-transport \
  --karakuri:baseUrl http://127.0.0.1:5003/api/v1 \
  --catbox:cache:client:uri mongodb://127.0.0.1:27017