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

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
db
lib
static
templates
views
.gems
LICENSE
README.markdown
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.