node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org ยป

tz-event-parser

Event Parser Service

Parses TZMR and H3R event files.

Run as a microservice, or run the command line binary.

Does not include tag-specific data

Usage

CLI

run tzeparse [options] <filename>

Developing

CLI

run npm link at the root of the repository to add the binary

tzeparse runs the file specified by that name in the package.json bin section

Docker

Using docker-compose

  • docker-compose -f dev-compose.yml build
  • docker-compose -f dev-compose.yml up

Note: first time running with dev-compose.yml will require npm install from another shell attached to this container, e.g. docker exec -it eventparser_app_1 bash npm install

Using plain docker

  • docker build -t ncd-backend ./
  • docker run --it -rm -v $(pwd):/var/www -p 3000:80 ncd-backend #runs on host port 3000

Custom local Node.js installation

Run npm start in the root of the repository

Deploying

Docker

  • docker build -t project ./
  • docker run -d -p 80:80 project

Kubernetes

TODO