项目作者: oughtinc

项目描述 :
Humans consulting HCH
高级语言: JavaScript
项目地址: git://github.com/oughtinc/hch.git
创建时间: 2017-07-24T22:16:15Z
项目社区:https://github.com/oughtinc/hch

开源协议:MIT License

下载


HCH

This is an implementation of Paul Christiano’s HCH in Javascript (NodeJS). It is directly based on the Python implementation of ALBA.

How to use

NPM package

If you would like to use HCH as a library, install the NPM package:

  1. npm install --save hch # or: yarn add hch

Manual installation

Install from Github using yarn:

  1. git clone https://github.com/oughtinc/hch.git
  2. cd hch
  3. yarn
  4. yarn add readline-sync # If you want to run example.js
  5. yarn run build

Then:

  1. node build/example.js

See the ALBA README for instructions on how to interact with HCH.

Development

Open bash environment with node:

  1. docker-compose run bash

Build and run example.js:

  1. docker-compose run hch

Build and run example.js in debugger:

  1. docker-compose run --service-ports debug

Run Flow type checker:

  1. docker-compose run flow

Run ESLint:

  1. docker-compose run eslint