Sign inSign up

fiwoo/business-intelligence

By fiwoo

Updated over 8 years ago

This repository contains the business intelligence microservice in the FIWOO platform

Image
1

1.5K

fiwoo/business-intelligence repository overview

Business-Intelligence

This repository contains the business intelligence microservice for the FIWOO platform. It has the option to predict glucose, predict an intelligent route taking into account weather and pollution and allows users to upload and test models in python.

Getting Started

Prerequisites
Developing
  • Run pip install flask requests wasp-eureka python-jose flask_cors pyowm to install Flask and other dependences.

Build & Development

Run python Controller_Controller_ClucosaChi.py to start the microservice.

Testing

Run pytest Test_business_intelligence.py -v to run the unit tests.

Deployment with Docker

In order to deploy this microservice using Docker, follow these steps:

  1. Download the docker image from Docker Hub

     `docker pull fiwoo/business-intelligence`
    
  2. Run the image. Take into account that the microservice is started on port 5001. You need a mongo DB named bi_models to store the models:

     `sudo docker run -d --name business_intelligence -p 5001:5001  -e "SECRET=<JWT SECRET>" -e "EUREKA_VHOST=<EUREKA_HOST>" -e "EUREKA_PORT=<EUREKA_PORT>" -e "DB_HOST=<Mongo_DB_HOST>" -e "DB_PORT=<EUREKA_HOST>" -e "ROUTES_HOST=<URL_OF_OPEN_ROUTE_SERVICE> -e "ROUTES_PORT=<PORT_OF_OPEN_ROUTE_SERVICE> " fiwoo/business-intelligence`
    

Tag summary

Content type

Image

Digest

Size

489.2 MB

Last updated

over 8 years ago

docker pull fiwoo/business-intelligence