Coder Social home page Coder Social logo

mxo-dotcom / big-album-art Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vsupalov/big-album-art

0.0 0.0 0.0 62 KB

[RETIRED] A Flask app to display almost-fullscreen album art for your currently playing Spotify songs. Enjoy the visuals!

License: MIT License

Python 36.74% Makefile 1.50% HTML 21.53% Shell 1.71% JavaScript 27.44% Vue 8.63% Dockerfile 2.46%

big-album-art's Introduction

Build Status License: MIT

Big Album Art (2017)

A Flask app to display almost-fullscreen album art for your currently playing Spotify songs. Enjoy the visuals!

This project was started with minimal effort, and has since been retired. A lot of bad patterns in here, which have not been corrected.

Development Setup

You need to install Docker, and docker-compose.

Copy the env_dev file to env_dev_secret, and insert your Spotify app key and secret. That file is not tracked by git. You can create an app here.

Bringing up a development environment from the repository consists of the following commands:

$ docker-compose build
$ docker-compose up

Access it on localhost

For curiosity or to start working on the app without Docker: See the Dockerfile in compose/app_dev for installed packages. The start.sh file in the same directory performs all necessary steps to run the app in dev mode.

Run Flask Admin Commands

# go into the docker container and enter the virtualenv
$ make go_into_app
$ source /srv/maintenance.sh

# do stuff
$ flask resetdb

Interact Directly With The Database

$ make go_into_db

Add New Dependencies

# go into the docker container and enter the virtualenv
$ make go_into_app
$ source /srv/maintenance.sh

# install new pip modules in the venv here

# save them
$ pip freeze --local > requirements.txt

The App Container Crashes - How Do I Find Out What's Wrong?

It tries to start the dev server right away for convenience. If that crashes for some reason, the container stops as well. Here's what you need to be able to debug it in such a case.

Uncomment the 'entrypoint' line in the docker-compose.yml file, bring the stack down and up again. Now the container is running, and you can exec into it and fix the issue, so it works again.

# go into the docker container and enter the virtualenv
$ make go_into_app
$ source /srv/maintenance.sh

Links

Used:

Maybe someday:

big-album-art's People

Contributors

vsupalov 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.