Skip to content

emottk/newmusic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#New Music

This app uses the Soundcloud API to bring upcoming artists to the user. It displays artists with low follower counts along with a song to sample. A user can like an artist to view their profile later.

Installation:

System requirements

Newmusic requires python3, pip, virtualenvwrapper and postgresql.

To install system dependencies on OS X using Homebrew:

# Install system dependencies
brew install python3 postgresql
# pip will be installed by python3
pip install virtualenvwrapper

# virtualenvwrapper must be added to your shell profile to work
cat <<EOF >> ~/.bash_profile
export WORKON_HOME=~/.virtualenvs
[ -f /usr/local/bin/virtualenvwrapper.sh ] && . /usr/local/bin/virtualenvwrapper.sh
EOF

Installing newmusic

# Clone the repository
git clone git@github.com:postlight/newmusic.git

cd newmusic

# Create a virtualenv and install dependencies via pip
mkvirtualenv newmusic
pip install -r requirements.txt

# Migrate your database
python manage.py migrate

# Run the development server
python manage.py runserver

You should now have a dev instance running at https://localhost:8000

Deploying

newmusic currently lives at https://mighty-everglades-78445.herokuapp.com/

To deploy your own version on Heroku:

First create a free Heroku account if you don't have one.

Download the Heroku Toolbelt.

# User your credentials to log in to Heroku from terminal
heroku login

# After successfully logging in, create your new Heroku project from the newmusic directory
heroku create

# Deploy the code through git
git push heroku master

A Procfile and requirements.txt are necessary for deployment. Heroku uses postgresql as its database as well. These things should be handled within your cloned version of the app.

Learn more about Heroku and Python.

###Using Heroku via Command Line

# Check your logs
heroku logs

# Or
heroku logs --tail

# To run app locally
heroku local web

# To migrate
heroku run python manage.py migrate

# To open a shell through heroku
heroku run python manage.py shell

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published