SongLab is a music collaboration website where users can browse and upload musical projects in need of creative collaboration. Users make profiles to keep track of their uploaded projects, to summarize their musical involvement, and to message other users with collaboration requests.
- Clone the Repository at https://github.com/jaredbeckler/song-lab
- In your terminal, navigate to the project's main folder and run
composer install
to get Silex, Twig, and PHPUnit installed. - Navigate to the project's web folder using terminal and enter
php -S localhost:8000
- Open PHPMyAdmin by going to localhost:8080/phpmyadmin in your web browser
- In phpmyadmin choose the Import tab and choose your database file and click "Go".
- In your web browser enter localhost:8000 to view the web app.
If you are not able to import the databases:
- Open MAMP and Start Servers
- In your terminal enter
/Applications/MAMP/Library/bin/mysql --host=localhost -uroot -proot
- Next, enter the following commands into your mySQL shell:
CREATE DATABASE songlab;
USE songlab;
CREATE TABLE collaborations (id serial PRIMARY KEY, project_id INT, user_id INT);
CREATE TABLE messages (id serial PRIMARY KEY, message TEXT, sender VARCHAR(255), project_id INT);
CREATE TABLE messages_user (id serial PRIMARY KEY, message_id INT, user_id INT);
CREATE TABLE projects (id serial PRIMARY KEY, title VARCHAR(255), description TEXT, genre VARCHAR(255), resources VARCHAR(8000), lyrics TEXT, type VARCHAR(255), user_id INT);
CREATE TABLE users (id serial PRIMARY KEY, first_name VARCHAR(255), last_name VARCHAR(255), email VARCHAR(255), username VARCHAR(255), bio MEDIUMTEXT, photo VARCHAR(700), password VARCHAR(15));
CREATE DATABASE songlab_test;
USE songlab_test;
CREATE TABLE collaborations (id serial PRIMARY KEY, project_id INT, user_id INT);
CREATE TABLE messages (id serial PRIMARY KEY, message TEXT, sender VARCHAR(255), project_id INT);
CREATE TABLE messages_user (id serial PRIMARY KEY, message_id INT, user_id INT);
CREATE TABLE projects (id serial PRIMARY KEY, title VARCHAR(255), description TEXT, genre VARCHAR(255), resources VARCHAR(8000), lyrics TEXT, type VARCHAR(255), user_id INT);
CREATE TABLE users (id serial PRIMARY KEY, first_name VARCHAR(255), last_name VARCHAR(255), email VARCHAR(255), username VARCHAR(255), bio MEDIUMTEXT, photo VARCHAR(700), password VARCHAR(15));
- Because of pathing, back button won't work at times.
- After deleting account, no modals work on the rendered homepage.
Please contact any of us through GitHub with any questions, comments, or concerns.
- Composer
- Twig
- Silex
- PHPUnit
- PHP
- mySQL
- Apache Server
- HTML
- CSS/Sass
- Materialize
- Bourbon
This software is licensed under the MIT license.
Copyright (c) 2016 Jared Beckler, Torrence Stratton, Jessica Fix, Brooke Hurford, Taylor Pokoj