Author: Daniel Ronson
- REST microservices
- Create and manage playlists
- Generate XSPF format playlist
- Servies: XMLGEN, playlists, tracks, descriptions, users
- Flask web framework
- Running on a Linux OS
- Python3 installed.
- Flask installed.
- Kong Installed, running, and configured
- Minio Installed, running, and populated with tracks
- install python requets
- install cassandra driver for python
- export FLASK_APP=tracks.py
- chmod +x populatedb_curl.sh foreman.sh ringbalancer.sh kongconfig.sh
./kongconfig.sh
` Initializes Kong./ringbalancer.sh
Configures load balancerpython cassandra_config.py
creates database schema 5./foreman.sh
Spawns desired amount of each service, I configured 3 of each in Kong./populatedb_curl.sh
Populates database with content
- Consume any endpoint describbed in API documentation through load balancer or by exact address
- Generate XSPF playlists by using the XMLGEN.py microservice
- Note: Music files must be stored in minio to actually listen to the playlist
- access load balancer at localhost:8000//<serviceEndpoint
- example query:
localhost:8000/playlist/playlist/all