terrbear / lovehate
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (2)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
.gems | Mon Feb 22 14:34:22 -0800 2010 | |
| |
.gitignore | Tue Feb 09 12:08:05 -0800 2010 | |
| |
MIT-LICENSE | Tue Feb 09 12:06:38 -0800 2010 | |
| |
README.rdoc | Wed Feb 10 08:56:48 -0800 2010 | |
| |
Rakefile | Mon Feb 22 12:42:16 -0800 2010 | |
| |
application.rb | Wed Feb 10 09:07:40 -0800 2010 | |
| |
bin/ | Wed Feb 10 09:30:14 -0800 2010 | |
| |
config.ru | Tue Feb 09 12:06:38 -0800 2010 | |
| |
environment.rb | Mon Feb 22 14:03:36 -0800 2010 | |
| |
lib/ | Mon Feb 22 12:42:16 -0800 2010 | |
| |
public/ | Mon Feb 22 14:43:12 -0800 2010 | |
| |
script/ | Tue Feb 09 12:06:38 -0800 2010 | |
| |
spec/ | Wed Feb 10 09:07:40 -0800 2010 | |
| |
users.yml | Wed Feb 10 08:56:48 -0800 2010 | |
| |
views/ | Wed Feb 10 08:57:47 -0800 2010 |
Love/HATE
An in-house way to voice happy (and vicious) thoughts for everyone to see.
Configuration
Love/HATE is a Sinatra application with several gem dependencies. You’ll probably first want to install all the necessary gems with rake gems:install.
You can set up the database by doing rake db:migrate RACK_ENV=production.
Naming Users
Edit /users.yml and add all variants of user’s names that you want to recognize. When you love or hate something, if it matches a user’s name, it will precede it with an @.
Posting
Every user who wants to post to your love/HATE instance will need to put their public key (in PEM format, named whatever.pem) in the /public/keys directory. However the key is named will be listed as the name of the user writing the note.
If you already have an id_rsa and an id_rsa.pub in your ~/.ssh directory, you can generate a PEM public key by doing openssl rsa -pubout -in ~/.ssh/id_rsa > yourname.pem.
Download and customize the love and hate scripts (change the URL for your love/HATE server) and put them in your path, then just type love love/HATE, this could be awesome and watch it appear on your instance.
