Skip to content

Latest commit

 

History

History
50 lines (42 loc) · 772 Bytes

README.md

File metadata and controls

50 lines (42 loc) · 772 Bytes

Install packages

sudo yum install git python3 -y

Prepare environment

python3 -m venv venv
source venv/bin/activate

Install dependencies

pip install -r requirements.txt

Run music player frontend

python3 -m http.server

Run Producer

env FLASK_APP=producer.py flask run --host=0.0.0.0

Init Database

python db.py

Run Stats frontend

env FLASK_APP=stats.py flask run --host=0.0.0.0

Run Consumer

python listener.py

Gist of things

  1. acquire sqs url
  2. edit sqs url in
  3. edit ec2 front-end instance ip in player.js (line 61 and 88)
  4. run music player front-end
  5. run producer/api
  6. create database
  7. run stat front-end
  8. run listener