Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Monk skeleton that uses Cuba instead of Sinatra.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 public
Octocat-spinner-32 routes
Octocat-spinner-32 views
Octocat-spinner-32 .gems
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Monkfile
Octocat-spinner-32 README.md
Octocat-spinner-32 config.ru
Octocat-spinner-32 main.rb
Octocat-spinner-32 shotgun.rb
README.md

Usage

With monk:

monk install
monk start

Without monk:

cat .gems | grep -v \# | xargs gem install
shotgun

Using this skeleton

This Monk skeleton uses Cuba instead of Sinatra.

Generic instructions

git clone --depth 1 git://github.com/rstacruz/monk-cuba.git myproject && rm -rf myproject/.git

Monk users

Monk-shake is the recommended version.

gem install monk-shake --pre

Add the skeleton and create a new project with it.

monk add cuba git://github.com/rstacruz/monk-cuba.git
monk init myproject -s cuba

Structure

app.rb        - The main file
shotgun.rb    - File preloaded by Shotgun, has all the gem require lines
Monkfile      - Monk tasks are here

routes/       - Routes go here
lib/          - All your Ruby classes/modules (models, helpers, etc)
lib/main/     - Helpers are usually here
views/        - View files
public/       - Static files
Something went wrong with that request. Please try again.