GithubHelp home page GithubHelp logo

edavis10 / sinatra_todo Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 5.0 265 KB

Simple Sinatra app to list todos from Emacs with some organization.

Home Page: http://theadmin.org/articles/sinatra-todo-a-web-frontend-to-a-plain-text-todo-file/

License: MIT License

Ruby 100.00%

sinatra_todo's Introduction

Sinatra Todo

Sinatra Todo is a web frontend to Billy Lamberta’s todo-list-mode. It lets you easily group tasks by priority or tags.

Setup

  1. You will need a text file formatted in the format for todo-list-mode (See below)

  2. Clone this repository: git://github.com/edavis10/sinatra_todo.git

  3. Start the application by using rackup: ‘rackup path/to/your/todo/list.txt`

  4. Browse to localhost:9292

  5. Login with the user account: admin/todos

  6. Bask in the glory of a webified todo list

Hacking

Changing the port it runs on

Use the ‘-p ####’ option with rackup. I like to use port 4567 because that’s Sinatra’s standard port.

Changing the account username and password

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.

Changing the path to the todo file

Sinatra Todo checks for a todo file in three places:

  1. The environment variables TODO_FILE (e.g. ‘TODO_FILE=here/todo.txt rackup`)

  2. The second argument to rackup (e.g. ‘rackup my/todo.txt`)

  3. A hardcoded string, to my todo file at the moment.

todo-list format

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)

sinatra_todo's People

Contributors

edavis10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.