GithubHelp home page GithubHelp logo

akurihara / musictaxonomy Goto Github PK

View Code? Open in Web Editor NEW
3.0 0.0 0.0 2.39 MB

Music Taxonomy lets you express your musical taste in a way that's visual, organized, and delightful!

Home Page: http://musictaxonomy.herokuapp.com/

License: MIT License

Python 95.76% JavaScript 3.09% HTML 1.14%

musictaxonomy's Introduction

Build Status Codecov

musictaxonomy

Music Taxonomy lets you express your musical taste in a way that's visual, organized, and delightful! See a live demo here.

Taxonomy Graph

It was inspired an infographic created by artist Karl Turner.

Set Up

  1. Create a virtual environment and install dependencies.

    $ brew install pyenv
    $ pyenv install 3.7.2
    $ pyenv local 3.7.2
    $ brew install pipenv
    $ pipenv install
    
  2. Set up environmental variables

    cp .env.sample .env
    

    Add the following variables to the .env file:

    • SPOTIFY_CLIENT_ID - The client ID of your Spotify application. This can be found at the Spotify developer dashboard.
    • SPOTIFY_CLIENT_SECRET - The client secret of your Spotify application.
    • DATABASE_URL - Database URL specifying which database to connect to locally (e.g. sqlite:///database.db).
  3. Install SQLite, create a new database, and initialize tables.

    $ brew install sqlite3
    $ sqlite3 database.db
    $ pipenv run python scripts/initialize_database.py
    
  4. Build the React frontend using:

    $ npm install
    $ npm run build
    

Running Locally

Run the server locally from the root directory with:

$ pipenv run python server.py --port=8080

Then, nagivate to localhost:8080 in your browser.

Running Tests

Activate the virtual environment.

$ pipenv shell

Create a test database if you haven't done so already:

$ sqlite3 test_database.db
$ source .env.test && python scripts/initialize_database.py

Run tests with:

source .env.test && nosetests test

musictaxonomy's People

Contributors

akurihara avatar dependabot[bot] avatar

Stargazers

Dasmer Singh avatar Anthony Saltarelli avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.