uci-soe / to-html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

to-html NPM version Build Status Dependency Status Coverage percentage

Microservice to convert data and template into html

Installation

There are two ways to install: as a submodule or a microserver.

1. As submodule

npm install --save to-html

2. As microservice

git clone http://github.com/uci-soe/to-html
cd to-html
npm start

Running Microservice with PM2

PM2 is recommended. Here is an example pm2.json

{
  "name"        : "to-html",
  "script"      : "bin/www.js",
  "args"        : [],
  "watch"       : true,
  "node_args"   : "",
  "cwd"         : "/root/path/to/to-html",
  "env": {
    "NODE_ENV": "production",
    "PORT": "6000",
    "NODE_DEBUG": ""
  }
}

More pm2.json documentation available here

Usage

/* Add usage for submodule */
/* Add usage for microservice */

License

BSD-3-Clause - LICENSE

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:JavaScript 100.0%