No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
dist
js
public
scripts
stylesheets
test
.babelrc
.gitignore
.sample-env
Procfile
README.md
babelRelayPlugin.js
config.js
dump.rdb
package.json
server.js
webpack.config.js
webpack.production.config.js

README.md

Plair

A Spotify-like music player backed by YouTube's API, built in React, Relay and GraphQL

Uses relay-starter-kit

Try It

Installation

npm install

Running

Start a local server:

npm start

Start the redis server

redis-server

Developing

Any changes you make to files in the js/ directory will cause the server to automatically rebuild the app and refresh your browser.

If at any time you make changes to data/schema.js, stop the server, regenerate data/schema.json, and restart the server:

npm run update-schema
npm start

Deploy

npm run update-schema
npm run build

Redis

Modules using Redis: getSpotifyAlbumTracks getRecentAlbums

CSS

Uses BEM and post-css-next

Features

  • Infinite scroll for search results using a custom GraphQL wrapper for YouTube API

Todo

  • Improve the getMostRelevant funtion found in helpers/playlistFromText.js.
  • User Account: Save albums and playlists
  • 'Recently listened' should return albums that users actually listened to, not just searches

License

Relay Starter Kit is BSD licensed. We also provide an additional patent grant.