Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A very simple sinatra application which listens on Jabber to take your notes and then displays them back to you
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
public
spec
views
.gitignore
Gemfile
README.md
Rakefile
config.ru.sample
note_taker.yml.sample

README.md

Notable

A very simple sinatra application for taking notes and small snippets. It provides an RSS feed of the notes and has a simple JSON api for creating, retrieving and searching notes. It uses DataMapper to talk to the backend data-store. Also included is 'note_taker', a simple jabber bot which knows how to use the JSON api to talk to notable.

Getting Started

Notable

First, you'll be wanting some rubygems. Obviously you'll be wanting sinatra (at least 1.2), but also:

  • dm-core
  • dm-timestamps
  • dm-validations
  • dm-aggregates
  • dm-sqlite-adapter (Or other DataMapper adapter of your choice)
  • dm-migrations
  • haml

There is a Gemfile for use with bundler which can be used to install all of these.

You'll also want a rack-aware webserver (I use unicorn, but the webrick which comes with ruby should suit you fine to test). Once you have this, getting started is easy:

cp config.ru.sample config.ru
rackup

notable should now be running on port 9292 on the local host. It should also have created an sqlite3 database in the notable directory, called notes.db. If you want to change the data-store notable connects to, change the DATABASE_URL to any DataMapper understands. To change aspects of how rackup serves the application, check out the options rackup -h gives you.

note_taker

If you also want to be able to talk to note_taker, the jabber bot, you'll need a few more gems:

  • uppercut
  • rest-client
  • daemons

note_taker takes a variety of options, which can be seen by running note_taker -h. However for convenience one of those options, -C, reads in options from YAML formatted file. There's an example file included in the repo, so:

cp note_taker.yml.sample note_taker.yml
# edit to set a correct JID and password.
# JIDs are formatted as user@example.com/resource
note_taker start -C note_taker.yml

And your jabber bot should start up. If you change the port notable listens on, you'll need to make the corresponding change in the url: (or -u option).

Licensing and Credit

Icon

The icons used in notable are from the silk icon set by Mark James. They are made available by him under the Creative Commons Attribution 2.5 License

License

The code for notable is released under the MIT license.

Copyright (c) 2008-2012 Jonathan Stott

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Something went wrong with that request. Please try again.