Todos
Backbone Todos example application backed by Riak (original demo http://documentcloud.github.com/backbone/examples/todos/index.html)
Install / Use
/learn @dreverri/TodosREADME
Todos
Overview
Todos is a simple example application which uses Backbone.js, Ruby (Sinatra, Rack, Ripple), and Riak for a key value datastore. This also provides a good example of using OAuth to authenticate against twitter.
Getting Started
To run this app, the following steps need to happen:
- Get the todo source using git.
- Get Twitter API keys. These are needed for OAuth.
- Install Riak.
- Configure this app (via Ripple) to use Riak.
- Run!
Getting the Source
Clone the source tree using git:
git clone https://github.com/dreverri/todos.git
This is a Ruby app, so if you haven't used RVM, get it set up before going farther.
To prepare everything for running, switch to the source tree and run:
bundle install
Obtaining Twitter Keys
Log into the twitter developer portal and generate some Twitter API keys. Make sure the Callback URL is correct. If you plan on runnings under localhost, use something like http://127.0.0.1 for the URL.
Copy the settings file (config/settings.yml.example) to (config/settings.yml). Edit it, and insert your twitter API keys from above. Make sure you use the "Consumer Key" and "Consumer Secret" hashes, not something else.
Installing Riak
Refer to the official instructions to get Riak running.
Configure Ripple
Edit config/ripple.yml and ensure one of the environments matches your Riak info. If you are running Riak on localhost, you don't need to change anything; just use the development profile.
Run
Set the environment ripple will use from the config file:
export RACK_ENV=<environment>
Use bundle to run the app & pick the TCP port you want Sinatra to use:
bundle exec rackup -p 4567
Related Skills
node-connect
349.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.7kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.7kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
