This repository contains the business intelligence microservice in the FIWOO platform
1.5K
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.
pip install flask requests wasp-eureka python-jose flask_cors pyowm to install Flask and other dependences.Run python Controller_Controller_ClucosaChi.py to start the microservice.
Run pytest Test_business_intelligence.py -v to run the unit tests.
In order to deploy this microservice using Docker, follow these steps:
Download the docker image from Docker Hub
`docker pull fiwoo/business-intelligence`
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`
Content type
Image
Digest
Size
489.2 MB
Last updated
over 8 years ago
docker pull fiwoo/business-intelligence