https://github.com/cldwalker/sinatra-bootstrap
sinatra app bootstrapped by bootstrap and some
https://github.com/cldwalker/sinatra-bootstrap
Last synced: 28 days ago
JSON representation
sinatra app bootstrapped by bootstrap and some
- Host: GitHub
- URL: https://github.com/cldwalker/sinatra-bootstrap
- Owner: cldwalker
- Created: 2012-04-22T19:07:18.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-05-13T13:07:33.000Z (about 14 years ago)
- Last Synced: 2025-03-20T10:44:17.914Z (about 1 year ago)
- Language: JavaScript
- Size: 214 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Description
Yet another opinionated [sinatra app bootstrapped with
bootstrap](https://github.com/search?langOverride=&q=sinatra-bootstrap&repo=&start_value=1&type=Repositories&utf8=%E2%9C%93).
This one comes with haml, rspec and rack-test setup, a syncable bootstrap, a default layout and ready for heroku.
## Setup
```sh
$ git clone git://github.com/cldwalker/sinatra-bootstrap.git my_app
$ cd my_app
$ bundle install
```
App is named My::Application by default. Rename as desired (Yes, Sinatra::Application exists but
screw top-level extensions).
## Usage
```sh
# In dev
$ bundle exec shotgun
# In production
$ bundle exec thin start
# To herokuify
$ heroku create -s cedar && heroku open
```
## Using bootstrap
Bootstrap files are available under public/bootstrap/{css,img,js}. The layout, views/layout.haml,
points to those files. If you'd like to update public/bootstrap to the latest bootstrap version:
```sh
# Only do this once
$ rake bootstrap:init
# Run this every time
$ rake bootstrap:update
```
If lessc and uglifyjs are installed, the update task will compile the assets into a zip file. Otherwise, it'll use
the prebuilt assets.
## TODO
* Replace git submodule with a temp clone
* Setup airbrake with errbit
* Setup coffeescript with testing
* Gemify useful components as needed
* Consider scss/less
## Credits
* [twitter bootstrap](http://github.com/twitter/bootstrap) of course
* [bootstrap rake
tasks](https://github.com/gudleik/twitter-bootstrapped)
* [view layout](https://github.com/ghostandthemachine/sinatra-haml-bootstrap-fluid)