In this project we use Amazon AWS EC2 to establish online server, first visit here to sign up an account.
In instance tab, choose Launch instance - Ubuntu Server 14.04 LTS (HVM), SSD Volume Type for target VM
From provided types choose t2.micro which has 1 vCPU 1GiB memeory and 8GB Instance Storage.
If there is more than 1 server it's efficient to keep all instances under same subnet(In Step 3: Configure Instance Details)
Choose review and launch.
2.1 Servers
Details: here
2.2 Load Balancers
For a sample music player the load balancer is not required. If you wish not to set up one please jump to Step #3
Depends on how many workload users will generate, the numbers of load balancer will change, for example now you can depoly one load balancer with 3 back-end servers.
Details: here
3.1 Web page coding
Write the player main screen use html and css. For sample the code has been upload to github here and here.
3.2 Including *.mp3 files
Required files has been upload to here
On servers
use
$ cd /var/www/html
to locate apache2 root directory
use
$ sudo git clone https://github.com/Exodus000/CloudComputingProj.git
$ sudo git clone https://github.com/JamesHeinrich/getID3.git
$ sudo git clone https://github.com/buaajjg/music.git
to clone the repo to current directory
and
$ sudo git pull
to make a update
move the compentonts to the html directory
sudo mv CloudComputingProj/* /var/www/html
which has been includes in step 2
Simply visit your VM's IP/index.php and it will start automatically
And now click play button after song you like it will start playing, click download it will generate a browser download action.