Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Pulls sxsw video info from youtube public api, stores it in couchdb.
JavaScript Ruby
Branch: master
Pull request Compare This branch is 8 commits behind doppler:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
attachments
README.md
app.js

README.md

Youtube Playlist Widget Thingy

Requirements

  • Ruby (to poll the Youtube API)
  • couchrest rubygem (to store the data in...)
  • CouchDB
  • nodejs (because we need...)
  • npm (node package manager, so we can install...)
  • couchapp (npm install -g couchapp. for uploading design doc to the couchdb)

Install

Once you get all that shit installed, and CouchDB running locally... Pull in the Youtube playlist data:

ruby attachments/couchify_sxsw_youtube_playlists.rb

Then upload the app to couchdb:

couchapp push app.js http://localhost:5984/youtube-sxsw

Make sure your CouchDB is configured to allow JSONP (cross-origin) requests:

allow_jsonp: true

Then visit

http://localhost:5984/youtube-sxsw/_design/by/_rewrite/

Or, you should be able to just open attachments/index.html and things should work.

When loaded in the latter manner, you should be able to edit the html, css and js files and see the results by simply reloading. In order to push your changes up to the couchdb app, you'll need to re-run the couchapp command.

Something went wrong with that request. Please try again.