InstaDJ is a web-based application for generating playlists and discovering new music. Whether it's based on answers to a few questions, or a collaborative effort, InstsDJ aims to introduce users to new artists and genres.
- Ryan Bower
- Brendon Strowe
- Rana Vemireddy
Prerequisites
It is assumed that PostgreSQL, Node.JS with NPM, and the Bower package manager are all installed on your system before proceeding with the steps below.
- Build the database. From a PostgreSQL prompt, run the
scripts/CreateDatabase.sqlscript to build the database. Test data is also available. Use the script located inscripts/TestData.sqlto populate the database with test data. - Configure your environment to connect to the database. In the root directory of this project, create a new file called
.env. The contents of the file should look like the following whereusernameandpasswordare replaced with the credentials needed to log into your local instance of your PostgreSQL Server and???is replaced for your custom secret string.
APP_PORT=3001
EXPRESS_SECRET=???
DB_HOST=localhost
DB_USERNAME=username
DB_PASSWORD=password
DB_DATABASE=InstaDJ
- Install the dependent Node.js packages. In a Terminal or Command Prompt window, change the working directory to the root directory of the local copy of this project. Run the command
npm install. - Install the dependent front-end packages. Run the command
bower install. - Start the server. Run the command
npm startto start the server. - Run the client. In a web browser, navigate to
http://localhost:3001/(if you change theAPP_PORTin the environment variables in step 2, you then instead specify that new port number in the address in this step).