8000 Home · 7digital/7Fi Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
ben-biddington edited this page Sep 14, 2010 · 10 revisions

Getting started

This is a JRuby project based on spotify-api which is in turn based on Jotify.

Setup

  • Spotify premium account
  • Settings file .jotify-settings.xml for your Spotify account, see How to configure you system with Spotify credentials
  • Download and install JRuby
  • If you’re using RubyMine, add jRuby as another SDK:
    File > Settings > Ruby SDK and Gems > Add Ruby Interpreter >
    Find JRuby.exe, e.g. C:\Program Files\jruby-1.4.0\bin\jruby.exe
  • Install gems: rack, rack-test, rspec, sinatra, haml, activesupport, nokogiri and json-jruby. You can do this via command line, or by adding gems in RubyMine.

How to configure your system with Spotify credentials


All you need is a properties file that looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
    <entry key="login.username">your spotify username</entry>
    <entry key="login.password">your spotify password</entry>
</properties>

placed in whatever this means on your machine:

 System.getProperty("user.home") + "/.jotify-settings.xml"

On Windows, find your home folder using:

>echo "%USERPROFILE%"

For example, I have:

C:\Documents and Settings\benb\.jotify-settings.xml
Clone this wiki locally
0