A simple, concise boilerplate for web development with Sinatra. Provides useful conventions without treating you like a child.
Sinatra was too basic for me, and Rails was too constraining. I wanted something that would provide a healthier balance between convention and creative expression. This boilerplate was the result. It is the ultimate expression of what I believe web development should be, philosophically collated through my decade of experience creating web applications. It encourages craftsmanship over conformity, only providing convention where it is truly useful, otherwise staying out of the way. Improvement without constraint.
-
Install Bundler:
$ gem install bundler
-
Clone Sammy Davis Junior:
$ git clone git@github.com:kyledrake/sammy_davis_jr.git
-
Modify Gemfile and environment.rb to your preference (or leave them alone).
-
Install dependancies with Bundler:
$ bundle install
-
Start the server:
For development: $ bundle exec rackup
For development, app reloads automatically: $ bundle exec shotgun -P public
For production: $ bundle exec rainbows -c config/rainbows.rb -e production
That's it! Hit the app with your browser and you should see the stubbed index route.
This is a boilerplate, in the style of the HTML5 Boilerplate. It's more of a glue that's designed to get you started in the right direction.
I am happy to hear suggestions for how to improve things or deal with unforeseen problems.. please file any requests with issues (or send pull requests!).