Code Monkey home page Code Monkey logo

duetify's Introduction

duetify

Search and play your favorite artist's collaborations from Spotify.

What duetify does

duetify helps you find artist collaboration tracks. Lookup your favorite artist and discover the tracks they have done with other artists.

Screen shots

Basic login Search Slash Slash Playlist Vai Playlist Cher Playlist

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Running the front-end

cd <to your work location>
git clone https://github.com/dbyington/duetify.git
git clone https://github.com/dbyington/duetify-server.git

Create the file '.env' in the root of the server with the following content:

CLIENT_ID='your Spotify API client id'
CLIENT_SECRET='your Spotify API client secret'
SERVER_PORT='8080' #the port you want the server on

Then run

npm install
npm start

See the duetify server README.md for more information running the server.

Running the tests

Apart from the Angular tests, no tests currently exist. You are welcome to write some, please see CONTRIBUTING.

Deployment

Work is in process on deploying the server to Google Cloud Functions. Meanwhile, deploying to Heroku should be straight forward as the back-end currently has no database requirement.

Built With

  • Angular - Front-end framework
  • Koa - Back-end framework

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository. No releases tagged yet as duetify is still in development.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • @arol, for steering me in the right direction for OAuth in an SPA.

duetify's People

Contributors

dbyington avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

duetify's Issues

Spotify playlist updates after request is complete

There may be a better way to handle this but I was thinking that I'd have to loop a GET of the playlist until the change is seen and then force a refresh of the iframe. Kind of ugly but since the PUT request to modify the list returns and the change hasn't actually published yet the list doesn't change until the next artist search.

token refresh

add: function for refreshing the access token
add: handler for expired token, calls for refresh token

need to call next url for more results

If the API call contains 'next' the 'next' url needs to be called and subscribed to.

{
    "artists": {
        "href": "https://api.spotify.com/v1/search?query=slash&type=artist&market=US&offset=0&limit=50",
        "items": [
        ...
        "limit": 50,
        "next": "https://api.spotify.com/v1/search?query=slash&type=artist&market=US&offset=50&limit=50",
        "offset": 0,
        "previous": null,
        "total": 103
    }

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.