Skip to content

billcolumbia/Quasar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quasar

A small starting point for a Sinatra app. Good for prototyping.

Out of the box

  • Live Reload
  • Sass + Compass
  • CoffeeScript
  • Slim / Erb

Usage

  • Clone the repo
  • cd into repo and run bundle
  • Run ruby app.rb
  • In a new terminal tab or window run guard
  • Make sure you have the Live Reload Browser Extension
  • Activate the extension by clicking the button in your browser while at your projects URL (0.0.0.0:4567 or can be changed in app.rb)
  • Get prototyping!!!
Layouts

Quasar uses layouts by default now. In app.rb you can specify if the view should be rendered using a layout:

# Routes
get '/' do
  @content = data["content"]
  # Using default layout
  slim :view_name
  # Using a specific layout
  slim :view_name, :layout => :layout_view_name
  # Using no layout
  slim :view_name, :layout => false
end

Deployment

  • To deploy to heroku, have the toolbelt installed
  • run heroku create APPNAME more info on heroku
  • run git push heroku master, if pushing a branch that's not master git push heroku localbranchname:master
  • open browser and see if it worked, if there are errors, make sure you ran bundle and commited with Gemfile.lock checked-in.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published