# Quik in Action - Sinatra App Quick Starter Template - qk/quik .:. The Missing Ruby Code Generator

**URL:** <https://rubytalk.org/t/quik-in-action-sinatra-app-quick-starter-template-qk-quik-the-missing-ruby-code-generator/73194>\
**Category:** ruby-talk\
**Created:** [23 August 2015 19:34 UTC](https://rubytalk.org/t/quik-in-action-sinatra-app-quick-starter-template-qk-quik-the-missing-ruby-code-generator/73194 "2015-08-23T19:34:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gerald\_Bauer1](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/gerald_bauer1/32/1852_2.png) [@Gerald\_Bauer1](https://rubytalk.org/u/Gerald_Bauer1)\
**Post date:** [23 August 2015 19:34 UTC](https://rubytalk.org/t/quik-in-action-sinatra-app-quick-starter-template-qk-quik-the-missing-ruby-code-generator/73194/1 "2015-08-23T19:34:41Z")

</div>

Hello,

&nbsp;&nbsp;I've put together a quick starter template for Sinatra [1] web apps  
using the quik machinery. Try:

&nbsp;&nbsp;$ quik new sinatra # or  
&nbsp;&nbsp;$ qk n sinatra

&nbsp;&nbsp;This will download and run the sinatra.rb [2] quik starter wizard  
script. Resulting in:

&nbsp;&nbsp;\>\> Hello from the sinatra quick starter wizard script  
&nbsp;&nbsp;\>\>  
&nbsp;&nbsp;\>\> Q: Name of the sinatra app? [hola]: hola  
&nbsp;&nbsp;\>\>  
&nbsp;&nbsp;\>\> Thanks! Ready-to-go. Stand back.  
&nbsp;&nbsp;\>\>  
&nbsp;&nbsp;\>\> Downloading Sinatra Starter Template...  
&nbsp;&nbsp;\>\> Setting up Sinatra Starter Template...  
&nbsp;&nbsp;\>\> ...  
&nbsp;&nbsp;\>\> Merging templates...  
&nbsp;&nbsp;\>\> name: "hola"  
&nbsp;&nbsp;\>\> klass: "HolaApp"  
&nbsp;&nbsp;\>\> ...  
&nbsp;&nbsp;\>\> Done.

&nbsp;&nbsp;Resulting in:

&nbsp;&nbsp;hola  
&nbsp;&nbsp;├── config  
&nbsp;&nbsp;&nbsp;\> ├── boot.rb  
&nbsp;&nbsp;&nbsp;\> └── database.yml  
&nbsp;&nbsp;├── app.rb  
&nbsp;&nbsp;├── [config.ru](http://config.ru)  
&nbsp;&nbsp;├── Gemfile  
&nbsp;&nbsp;└── [README.md](http://README.md)

&nbsp;&nbsp;&nbsp;That's it. Not your Sinatra template style? Add your own wizard script.  
&nbsp;&nbsp;&nbsp;Cheers.

PS: The qk/quik command line tool now includes a new list wizards  
(list, ls, l) command. Try:

&nbsp;&nbsp;$ quik ls

Resulting in:

&nbsp;&nbsp;1..gem .:. Gem Quick Starter Template  
&nbsp;&nbsp;2..gem-hoe .:. Gem Quick Starter Template (Hoe Classic Edition)  
&nbsp;&nbsp;3..sinatra .:. Sinatra Quick Starter Template  
&nbsp;&nbsp;...

[1] [https://github.com/rubyref/sinatra-starter-template](https://github.com/rubyref/sinatra-starter-template)  
[2] [https://github.com/rubyref/scripts/blob/master/sinatra.rb](https://github.com/rubyref/scripts/blob/master/sinatra.rb)
