A couple months back I wanted to create a Sinatra app that used Mongiod and could be deployed to Heroku. That turned out to be a little harder than I expected. A lot of the GitHub repos I looked at didn't really work right out of the box. There were minor issues here or there which stopped the apps from deploying without much fiddling. I just wanted a super simple out of the box solution that worked so I created this repo:
All you have to do is
You will see a counter incremented each time you hit the page. Mongoid is storing that integer and incrementing with each page refresh. I love bare bones apps that just give the absolute basics so you can easily see what's going on and I hope this app helps someone who just wants to get the app up as soon as possible.
It would really be great if Heroku decided to keep a Github repo with canonical examples of each type of project you can create so you don't have to wander out into the wilderness of the Internet looking for the answer. I love Heroku though, where else can you have an app up and running in less than 5 minutes?