Code Monkey home page Code Monkey logo

easter-project's Introduction

easter-project

This is a work in progress, using parts of the double diamond design process.

For details of the design process, refer to design_process.md

Getting Started

Install dependencies

pipenv install

If you want to use the jupyter notebooks then you will also need to run this (may take 5-10 minutes, because it re-compiles all of the jupyter lab frontend assets).

pipenv run jupyter labextension install jupyterlab-plotly @krassowski/jupyterlab-lsp

Make a .env config file from the template

cp .env.example .env

Make a spotify app and configure it

  • Go to https://developer.spotify.com/dashboard/applications and click CREATE A CLIENT ID.
  • Fill in the form to create a new app.
  • Go into your newly created app
    • Copy the relevant values into SPOTIPY_CLIENT_ID and SPOTIPY_CLIENT_SECRET.
    • Click EDIT SETTINGS
      • Copy the value from SPOTIPY_REDIRECT_URI into Redirect URIs, and click ADD
        • (If you get a white error page from spotify saying INVALID_CLIENT: Invalid redirect URI in a later page, you forgot to do this step)

Run the Plotly Dash app

pipenv run python easter_project/app.py

It should pop up an authorisation page.

Once you have authorized your app, it should print out a message in the terminal saying where the dashboard is hosted. Go there to view the dashboard.

Run the Jupyter Notebooks

pipenv run jupyter labextension install jupyterlab-plotly

easter-project's People

Contributors

anusha-ramdarshan avatar alsuren avatar

Watchers

 avatar

easter-project's Issues

do login flow properly, so that we can host this on the internets

We're currently using the cheaty method prompt_for_user_token, and hard-code Anusha's spotify username. We should rip this out and have some kind of login page that's displayed before visiting the dashboard (or as a button on the dashboard?)

The dash server is a wrapper around flask, so we can add arbitrary flask views if we want.

Docs for spotipy's idea of a login flow live here: https://spotipy.readthedocs.io/en/2.9.0/#authorization-code-flow . If it's easier to just do the oauth dance following spotify's recommendations, and then feeding the resulting token into spotipy then that's fine too.

  • Update the getting-started section of the readme to reflect the new flow.

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.