[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    Quik in Action - Sinatra App Quick Starter Template - qk/quik .:. The Missing Ruby Code Generator
From:       Gerald Bauer <gerald.bauer () gmail ! com>
Date:       2015-08-23 19:34:41
Message-ID: CAAxEZd-MoL2R8154O5Ry8KvfM+h--JpBWJfg9=t=4uZ7fk+3hQ () mail ! gmail ! com
[Download RAW message or body]

Hello,

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

  $ quik new sinatra    # or
  $ qk n sinatra

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

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

  Resulting in:

  hola
  =E2=94=9C=E2=94=80=E2=94=80 config
   |   =E2=94=9C=E2=94=80=E2=94=80 boot.rb
   |   =E2=94=94=E2=94=80=E2=94=80 database.yml
  =E2=94=9C=E2=94=80=E2=94=80 app.rb
  =E2=94=9C=E2=94=80=E2=94=80 config.ru
  =E2=94=9C=E2=94=80=E2=94=80 Gemfile
  =E2=94=94=E2=94=80=E2=94=80 README.md

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

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

  $ quik ls

Resulting in:

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


[1] https://github.com/rubyref/sinatra-starter-template
[2] https://github.com/rubyref/scripts/blob/master/sinatra.rb
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic