This guide will provide you all the steps to run Movie Recommendation Engine web application.
- Ubuntu LTS 18.04 (tested distro) or another linux
- Components docker and docker-compose already installed on machine
- HDD 2 GB available
- Web side: Python 3.x, Flask, Javascript, Jquery and Bootstrap
- Database: PostgreSQL
- ML-Engine: rabbitMQ and python 3.x panda and numpy libraries
- Others: Linux, ShellScript, Docker
Go inside clone folder '../poc_movie_recommendations' and execute follows commands as you wish.
For startup all services
docker-compose -f docker-compose.yml up -d --build
For manually started 'web' container follow commands.
docker exec -it web bash
#only at first time as dev (for build database)
./web_run db_build
#to see flask running
./web_run start
CTRL+C for stop executing
Access web service: http://localhost:16000/webui
For manually started 'ml-service' container follow commands.
docker exec -it ml-service bash
#execute
./main.py
CTRL+C for stop executing
Go inside clone folder '../poc_movie_recommendations' and execute follows commands as you wish.
For startup all services
docker-compose -f docker-compose-deploy.yml up -d --build
For stop all services
docker-compose -f docker-compose-deploy.yml down
For stop and cleanup volumes
docker-compose -f docker-compose-deploy.yml down --volumes
Access web service: http://localhost:16000/webui
- Implements Pattern Database per service
- Remove ml-service from database access
- Only the web componente will manipulate database (using Schema-per-service)
- Each web-front client will publish to activemq (have own queue) and wait for the recommended movies (Choreography-based saga)