YaSApp - Yet annother Sinatra Application I built during the Sinatra Course - 12th batch at RubyLearning.
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.
- heroku postgres mapping
- Error handling
- RACK::AUTH::BASIC Authentication
- Responsive views based on thoughtbot/neat
Install heroku toolbelt, do $ foreman start
and go to localhost:5000.
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).
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