A Node.js application for remote relevance evaluation via QnA.
Start the virtual machine with Docker by running:
$ vagrant up
To build the site, run:
$ vagrant ssh
[vagrant@evaluate ~]$ cd /vagrant
[vagrant@evaluate ~]$ docker build -t evaluate/relevance .
[vagrant@evaluate ~]$ docker run -d -p 3000:3000 evaluate/relevance
Relevance evaluation is available:
$ curl 'http://127.0.0.1:3000/api/relevance/evaluate' \
-H 'Content-Type: application/json' \
--data-binary '{"relevance":"name of operating system"}'
{"answers":["Linux CentOS 7.1.1503"],"errors":[],"time":123,"type":"string"}