GithubHelp home page GithubHelp logo

hackthings / spotatweet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xdevplatform/spotatweet

1.0 2.0 0.0 1.26 MB

A Spotify & Twitter API mashup showing what people are listening to now. Written in Node.js.

JavaScript 61.37% CSS 26.87% HTML 11.76%

spotatweet's Introduction

spotatweet

A real-time Spotify & Twtter API mashup.

This web app filters the Twitter stream for #NowPlaying tweets, extracts track IDs from Spotify URLs, requests track data from the Spotify API and plays the audio in the web browser. Implements Twitter status/filter stream and oEmbed API.

Inspired by Serendipity by @kcimc, a Spotify Media Artist in Residence.

![Screenshot](screenshot.png?raw=true =858x "Screenshot")

Installing and Running

Install Node.js.

Clone GitHub repo:

git clone https://github.com/twitterdev/spotatweet.git

Create Twitter and Spotify Apps:

Create a config.json file using config.sample.json as a template. Fill in your Twitter & Spotify App API Keys.

Install Compass Ruby Gem.

gem install compass

If you do not want Compass support, comment out this line in app.js

// app.use(require('node-compass')({mode: 'compress'}));

Install node module dependencies:

npm install 

Run application:

npm start

Go to http://localhost:3000 in your browser.

A GET request to /nowplaying.json will return a Tweet object hydrated with a "spotify_track" object and a "oembed" object of the latest #NowPlaying Tweet.

Deploying

This application is already configured to run on Heroku and can be deployed with Git.

Before deployment set your Heroku environment config vars to mirror config.json.

On Heroku set NODE_ENV to "production."

Resources

spotatweet's People

Contributors

jcipriano avatar

Stargazers

Lorraine David avatar

Watchers

James Cloos avatar Rainey 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.