Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Status of ketchup supply with sinatra and mustache
Ruby JavaScript
branch: master
Failed to load latest commit information.
bin
db add empty sqlite db
lib Merge branch 'master', remote branch 'heroku/master'
static
templates update index template
views update confirm template with URL
.gems update gems manifest
LICENSE initial commit of README and LICENSE
README.markdown update README
config.ru fix config.ru

README.markdown

ketchupstatus

Displays status of your shared ketchup resources.

Background

In our office Monday is chicken/fries/burger day. And we always have a bottle of ketchup which we share. However before buying burgers in the supermarket next door, we always forget to check if we have enough ketchup left.

So I quickly threw together a simple sinatra app to set and check the status.

API

There are some rather simple API endpoints:

Update your ketchup:

POST /ketchup/$yourketchup/$token/$value

Status of your ketchup:

GET /ketchup/$yourketchup

Create new ketchup:

POST /ketchup/$desiredname

Beware

You only get the token once and there is no way to recover it at the moment.

Thanks

Kevin for quickly creating pics and design on a Friday evening.

Something went wrong with that request. Please try again.