Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Status of ketchup supply with sinatra and mustache

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 db
Octocat-spinner-32 lib
Octocat-spinner-32 static
Octocat-spinner-32 templates
Octocat-spinner-32 views
Octocat-spinner-32 .gems
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.markdown
Octocat-spinner-32 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.