Skip to content
YaSApp - Yet annother Sinatra Application
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
config
lib
models
public/stylesheets
spec
views
.autotest
.gitignore
.rspec
Gemfile
Gemfile.lock
LICENSE
Procfile
README.md
config.ru
helpers.rb
yasapp.rb

README.md

YaSApp

YaSApp - Yet annother Sinatra Application I built during the Sinatra Course - 12th batch at RubyLearning.

Features

Use YaSApp as your Sinatra Template Application with following simple components implementations:

  • Before filter and helpers
  • Handlers and form parameters
  • Simple model with CRUD actions
  • Haml and slim views
  • RSpec test suit

Just change or remove not used functionality and extend according to your needs. See it momentarily live deployed at heroku under YaSApp.

ToDo's (not implemented yet)
  • heroku postgres mapping
  • Error handling
  • RACK::AUTH::BASIC Authentication
  • Responsive views based on thoughtbot/neat

Developemnt

Install heroku toolbelt, do $ foreman start and go to localhost:5000.

Testing

YaSApp uses RSpec and autotest (the standalone version of ZenTest) for continous test feedback. For single test runs just do $ rspec of for continous feedback $ autotest.

Make sure to install OS specific helper libaries, e.g. for linux do:

$ sudo apt-get install libnotify-bin

Further hints are available via autotest-inotify (hard disk and CPU friendly file alteration monitoring) and autotest-growl (visual feedback of test results).

Production

Clone, bundle install, commit and push to heroku:

$ git clone git@github.com:netzfisch/yasapp.git
$ bundle install # '--without production' for local deployments!
$ git init
$ git add .
$ git commit -m “commit Sinatra Template App”
$ heroku create sinatra-template-app
$ git push heroku master
Something went wrong with that request. Please try again.