Giter VIP home page Giter VIP logo

shuffle-client's Introduction

Spotify shuffle

All your Spotify songs in one place to shuffle them.

Live demo: https://shuffle-client.vercel.app

USE FLOW

On landing page, users get recommended songs for current time and day. Click on track opens Spotify app and plays it. On login with their Spotify account, users get a single list with all their songs, retrieved from their Liked Songs list and all their playlists (all users album's songs TBD). Users can click any song to play it individually, or play them all in the displayed order with button, or export all of them as a playlist to be played in Spotify app. Users can search tracks by title or artist.

APIS

  • Spotify API for user auth, user playlists retrieval and creation, track recommendations by day and time through seeded data.

LIBRARIES

DATABASE

  • PostgreSQL database stores played tracks sorted by time and day of week. On landing page, app seeds the Spotify Recommendations API endpoint and retrieves four tracks recommended for current time and day.

STACK

  • React frontend.
  • Node-express backend: server
  • PostgreSQL database.

USAGE

  • Register a new app at Spotify Dashboard
  • Set process.env.REACT_APP_CLIENT_ID with credential provided by Spotify.
  • Set process.env.REACT_APP_REDIRECT_URI to localhost or desired dev url.
  • Deploy server, set process.env.REACT_APP_BASE_URL to this url.
  • Create database. Deploy it, and set process.env.REACT_APP_TRACKS_URL to this url.
  • Run with npm start.

TODOS

  • FEATURE: user select playlists to add to the mix .
  • FEATURE: Export playlist. Allow users to export a new playlist with all their tracks in one place, so users can play it from the Spotify player.
  • UI: on search, focus on search results.
  • UI: on shuffle button press, render the tracks in the order they are being played in player queue, with cool animation. On "re-shuffle", repeat the process.
  • FEATURE: Advanced shuffle. Shuffle all user songs with advanced criteria (exclude terms, select from given playlists, shuffle from group of albums)
  • Retrieve tracks from all saved albums and add them to the list. (CREATE /albumtracks in heroku server, then add the request in client/helpers/retrieveTracks )
  • In shufle/playAll, set logic to refill queue after 200 tracks have been played
  • On shuffle or PlayAll, be able to select a track and play it inmediately, and continue with the previous queue afterwards.
  • distribute the requests and returns on the server in order to render the whole list fast and by small sections.
  • Advanced shuffle: design compartiments to shuffle from selected playlists/albums/liked songs / with genre/without genre with artist/without artist

REFERENCE

Valuable guidance and inspiration were found in this tutorial made by @DevSimplified

shuffle-client's People

Contributors

gmzi avatar

Stargazers

 avatar

Watchers

 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.