Giter Club home page Giter Club logo

musika's Introduction

Musika

Holds all the metadata for the music collections and compilations that I have; Exposes stats that are extensible; Used as a vehicle to learn the Django web framework.

Run Locally on Docker

Prerequisite

  • Docker installed
  1. build the app on docker docker-compose up -d --build
  2. Run the migrations docker-compose exec web python manage.py makemigrations docker-compose exec web python manage.py migrate
  3. Ingest collections docker-compose exec web python scripts/ingest_all_collections.py --clear

Application is then available on http://127.0.0.1:8000/lib

Test

After installing the app (See run locally), run docker-compose exec web python manage.py test

Heroku - TBD

The application is currently running on Heroku - https://musika-3.herokuapp.com/lib/

Created the app on heroku; See that you need to have all data on master

  • heroku create musika-3
  • Then adding 'musika-3.herokuapp.com', 'localhost', '127.0.0.1' to allowed hosts in settings.py;
  • heroku config:set DISABLE_COLLECTSTATIC=1
  • git push heroku master

Took the following values from the heroku postgres settings page

  • heroku config:set MUSIKA_DB_NAME=***
  • heroku config:set MUSIKA_DB_USER=***
  • heroku config:set MUSIKA_DB_PASSWORD=***
  • heroku config:set MUSIKA_DB_HOST=***
  • heroku config to verify the current config vars

Add migrations and create super user

  • heroku run python manage.py migrate
  • heroku run python manage.py createsuperuser

Seed the DB

  • heroku config:set DJANGO_SETTINGS_MODULE=musika.settings
  • heroku run python scripts/ingest_collections.py all

Goal

The target state for the first development phase is to have all my compilations available on the webserver, being able to navigate in between collections to songs to artists. Importantly, the application will expose interesting facts about the collections such as popular artists, popular genres, duplicate songs etc. A more comprehensive list is available in Development - stats features.

musika's People

Contributors

ofreshy avatar osnory avatar

Watchers

 avatar  avatar

musika's Issues

Duplicate Songs in Collections appear out order

When there is a duplicate song in a collection, it appears out of order; This is probably due to the fact that the DB fetches the songs by their ID, and their ID is smaller than the rest of the unique songs

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.