ja-k-e / jake-is-listening

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jake Is Listening

Paginated public JSON files containing what I am listening to, and a simple Vue interface.

Development

  • write data in /data-source.json
  • yarn serve will start hosting ./docs at localhost:8000
  • yarn build will clean, paginate and minify the json to ./docs/data/.

Publish

Tweeting

  • yarn tweet
  • follow the instructions to select a entry to tweet
  • if the entry you are looking for doesn't exist, you probably need to yarn build
  • I was gonna use the Twitter API to post, but realized it's about just as much work to copy paste.
  • This will spit out formatted text within the character limit as a preview as well as copy it to your clipboard (MacOS).

Importing a Spotify Playlist

Setup a Spotify Developer account and a new application. Ensure ./secrets.js exists and has the following content for spotify:

module.exports = {
  spotify: {
    id: "<CLIENT_ID>",
    secret: "<CLIENT_SECRET>",
    playlist: "<PLAYLIST_ID>"
  }
};
  • yarn spotify will format the Spotify playlist into ./data-source.tmp.json.
  • Copy and paste the contents into data-source.json and fill the rest out.
  • I like to paste the contents into data-source.queue.json until I am finished editing.

About


Languages

Language:JavaScript 100.0%