This repository contains the nodeJS/express based web server of the health-nlp project.
The health-nlp project is an NLP (Natural Language Processing) demo composed by the following repositories:
- health-nlp-react: frontend part. It displays the results of the analysis (stored in firebase) and explains everything about the project. It is a react + redux based web application.
- health-nlp-node: nodeJS/express backend for the health-nlp-angular frontend. It takes new job requests and sends them to the beanstalkd job queue.
- health-nlp-analysis (this repository): it processes jobs from beanstalkd and sends the results to firebase. It is a Python project.
This project is still on an early stage of development. As soon as there's an online demo available, you'll find a link here.
This project contains a nodeJS/Express app that gets jobs via a REST API and inserts them into a beanstalkd queue.
This project depends on beanstalkd and the health-nlp-analyzer. You can find more information about how to set up your environment and run such services on the health-nlp-analysis's readme.
By default, we're using port 11300
, IP 127.0.0.1
and the default pipe on beanstalkd. You can change this in the .env
file.
In order to install the dependencies, you can simply type npm install
.
Rename the example.env
file into .env
and modify the default values according to your system configuration.
Once beanstalkd is running on your machine and the configuration is ready, you can type npm start
to start the web server.
You can run the tests by typing this on the console:
npm test
And you can generate the coverage report with:
npm run coverage
If you want to deploy this service inside Docker containers, you will find the docker-compose.yml
file on the root directory of this repository.