Sinatra Todo is a web frontend to Billy Lamberta’s todo-list-mode. It lets you easily group tasks by priority or tags.
-
You will need a text file formatted in the format for todo-list-mode (See below)
-
Clone this repository: git://github.com/edavis10/sinatra_todo.git
-
Start the application by using rackup: ‘rackup path/to/your/todo/list.txt`
-
Browse to localhost:9292
-
Login with the user account: admin/todos
-
Bask in the glory of a webified todo list
Use the ‘-p ####’ option with rackup. I like to use port 4567 because that’s Sinatra’s standard port.
The account is hardcoded at the moment just to keep prying eyes out. If you want to use a different account (or remove it altogether), edit the ‘sinatra_todo.rb’ file.
Sinatra Todo checks for a todo file in three places:
-
The environment variables TODO_FILE (e.g. ‘TODO_FILE=here/todo.txt rackup`)
-
The second argument to rackup (e.g. ‘rackup my/todo.txt`)
-
A hardcoded string, to my todo file at the moment.
The todo-list format is very simple:
-
First character is a number or letter, which I use for the priority (e.g. 1, 2)
-
A space
-
Bunch of text for the task
-
(optional) the task text can have hashtag style comments which are converted into tags (e.g. #ruby, #home)