Giter Site home page Giter Site logo

crguezl / sinatra-sprockets-slim-backbone-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wulftone/sinatra-sprockets-slim-backbone-example

0.0 2.0 0.0 92 KB

A basic sinatra application with a few pre-installed components: sprockets, backbone.js, slim, eco, zepto.js, and sinatra-reloader

sinatra-sprockets-slim-backbone-example's Introduction

Sinatra + Sprockets + Slim + Sinatra-reloader Example

Credit comes from https://github.com/jch/sinatra-sprockets/ for the initial inspiration to get this thing working.

Setup

git clone git://github.com/wulftone/sinatra-sprockets-slim.git
cd sinatra-sprockets-slim
bundle install
bundle exec thin start
firefox localhost:3000

It should work with both ruby 1.9.3 and ruby 2.0.0.

Heroku deployment

When deploying to heroku, make sure you use the --stack cedar switch, or else it will complain about no javascript runtime:

heroku create my_app --stack cedar

Explanation

I wanted a simple way to get a backbone.js application up and running quickly, so I made this thing!

Basically, it's the barest-of-bones version with embedded examples that you should overwrite to get started. It has the following stuffs:

app.rb is a Sinatra application that is served from /

config.ru sets up a rackable Sprockets::Environment instance with assets/javascripts, assets/stylesheets, and assets/templates added to the load path. This endpoint is mounted at /assets.

sinatra-sprockets-slim-backbone-example's People

Contributors

wulftone avatar

Watchers

James Cloos avatar Casiano Rodriguez-Leon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.