99x / github-audio

Listen to music generated by events happening across GitHub 🎷🎸
https://github.audio
MIT License
3 stars 6 forks source link

GitHub Audio

Listen to music generated by events happening across GitHub

Imitation is the sincerest form of flattery. - Oscar Wilde

But seriously, listen-to-wikipedia by @slaporte and @mahmoud is the hotness.

Use ULTIMATE_DREAM_KILLER to filter all events except closed PRs.

Media

Installation on OSX

$ brew install nodejs
$ brew install npm
$ brew install redis

Installation on Linux

$ sudo apt-get update
$ sudo apt-get install nodejs
$ sudo apt-get install npm
$ sudo apt-get install redis-server

Install node packages

Navigate to the project directory and run

$ npm install

Environment variables

$ export GITHUB_OAUTH_KEY=<your_github_oauth_key>

Note: Without the GitHub oauth key the number of requests is throttled at 60 per hour. It can be increased to 5000 per hour by using an oauth key.

$ export TWITTER_CONSUMER_KEY=<your_twitter_consumer_key>
$ export TWITTER_CONSUMER_SECRET=<your_twitter_consumer_secret>
$ export TWITTER_ACCESS_TOKEN_KEY=<your_twitter_access_token_key>
$ export TWITTER_ACCESS_TOKEN_SECRET=<your_twitter_token_secret>

Run server

$ node server

Note: For production run export NODE_ENV="production" before starting the server.