This repository has been archived by the owner. It is now read-only.
JavaScript HTML Ruby CSS
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 78 commits ahead of lukasklein:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
.gitignore
Gemfile
Gemfile.lock
LICENSE.txt
Procfile
README.md
app.rb
config.json.sample
config.ru
env.sh.sample
package-lock.json
package.json
screenshot.png
steam-apps-index.json
steam-apps.json
steam_api.rb
steam_user.rb

README.md

Steamy iTunes Colors

Uses a port of Panic's iTunes album art color algorithm in JavaScript to get colors from a given Steam screenshot.

Screenshot

How to Run

cp env.sh.sample env.sh

Edit env.sh to specify the URL to where your Steam screenshots RSS feed app is hosted, as well as your Steam web API key.

npm install
bundle
rackup

Visit localhost:9292.

How to Update the List of Steam Apps

npm install
npm run-script update-steam-apps
npm run-script update-steam-apps-index

How to Deploy to Heroku

After pushing to Heroku with git push heroku master, you need to set some environment variables:

heroku config:set RSS_SERVICE_URL=http://url-to-steam-screenshot-rss.com
heroku config:set STEAM_API_KEY=your_steam_web_api_key
heroku buildpacks:add https://github.com/heroku/heroku-buildpack-ruby.git
heroku buildpacks:add https://github.com/heroku/heroku-buildpack-nodejs.git
heroku ps:scale web=1

Thanks

Thanks to lukasklein for the JavaScript to extract colors from the screenshots. Thanks to TinyColor for color parsing. Thanks to lunr.js for the Steam app search. Thanks to lunr-index-build for the tool used to build the lunr.js search index from the list of Steam apps.