Skip to content

Latest commit

 

History

History
121 lines (88 loc) · 4.25 KB

README.md

File metadata and controls

121 lines (88 loc) · 4.25 KB

GitHub license Docker Automated Docker Build Docker Pulls Docker Stars

harena-logger

Harena's API for managing users and clinical cases.

Table of Contents

Getting Started

Running as Docker containers - Linux

sudo apt-get install -y wget
wget https://github.com/datasci4health/harena-manager/blob/master/docker-compose.yml
sudo docker-compose up

Make sure you have node.js and npm already installed (see system requirements for more details).

Running as Docker containers - Windows

//to do

Running as Docker containers - Linux´

sudo docker run datasci4health/harena-logger:latest

Running locally - Linux

First, clone this repository and enter the folder:

git clone https://github.com/datasci4health/harena-logger 
cd harena-logger
cd modules/relayer                     # entering the source folder
pip3 install -r requirements.txt       # installing requirements packages for python
export FLASK_APP=server.py             # defining flask application
flask run                              # running the application

Running locally - Windows

//to do

System Requirements

For running as Docker containers

For running locally

System dependencies
  • flask
  • flask-cors
  • flask-restful
  • pymongo
  • kafka-python
  • coloredlogs

Configuration

Virtualenvs

  • HARENA_LOGGER_BROKER_HOST = mqtt host

  • HARENA_LOGGER_BROKER_PORT = mqtt host port

  • HARENA_LOGGER_FLASK_HOST = Flask host

  • HARENA_LOGGER_FLASK_PORT = Flask port

  • HARENA_LOGGER_FLASK_DEBUG = Flask debug

  • HARENA_LOGGER_MONGODB_HOST = mongo host

  • HARENA_LOGGER_MONGODB_PORT = mongo port

  • HARENA_LOGGER_MONGODB_DB = mongo database name

  • HARENA_LOGGER_MONGODB_COLLECTION = mongo current document

Contributing

Project organization

//to do

Branch organization (future CI/CD)