A project for the course PHPMVC at BTH, based on Anax-MVC.
By Marcus Törnroth.
It's easy to get your own copy of Spotify In Sigth! Start to clone the entire repository from GitHub.
git clone https://github.com/rcus/spot
Installing dependencies with Composer.
composer install
If your address to Spotify In Sight is located in a directory, you need to configure the file webroot/.htaccess. Un-comment the line below and edit to your directory.
RewriteBase /~matg12/phpmvc/spot/webroot/
Edit the file app/config/database_mysql.php. Replace HOST, DBNAME, USERNAME and PASSWORD with your data.
return [
'dsn' => "mysql:host=HOST;dbname=DBNAME;",
'username' => "USERNAME",
'password' => "PASSWORD",
...
Now are you able to create tables and views in the database. Just point your browser to http://YOUR_PATH_TO_PROJECT/setup, like:
http://www.student.bth.se/~matg12/phpmvc/spot/webroot/setup
The setup install some demo data. If you would like to have a clean install, you have to remove - or comment - the following line (42) in webroot/index.php and then point your browser to setup:
$setup->addDemo();
Usernames and passwords in demo are like the users first name, like user john wtih password john. Well, all users except mine ;)
Now you have your own version of Spotify In Sight. Enjoy!