This is a Sinatra app for creating messages that simulate the style of ransom notes, commonly used by blackmailers and kidnappers (NOTE: I don't condone such actions). Instead of magazine and newspaper cuts, Flickr is the source of all individual letters, extracted from the groups One Letter, One Digit and Punctuation.
The app is deployed at http://ransom-note.heroku.com.
The app has the following routes are available:
- "/" takes to the message composition, where you can generate a new message and save it.
- "/note/" takes to a specific message. Example: http://ransom-note.heroku.com/note/1GFM
- "/admin" takes to the maintenance page where you can browse images from Flickr and add/remove them from the app. Default credentials are admin/Demo123.
The following is required for installing and running the app:
- MongoDB for persistence.
- A Flickr API key. It can be obtained here.
- Bundler for installing Ruby dependencies.
To get the latest version and install the dependencies.
$ curl -skL https://github.com/moonpxi/ransom_flickr/tarball/master > ransom-note.tar.gz; tar -xzf ransom-note.tar.gz
$ cd <ransom_note_dir>
$ bundle install
Create a flickr_key.yaml
file in the base directory with the following:
key: <your key>
secret: <your key>
From the base directory run:
$ ruby app/ransom.rb