netzfisch / yasapp

YaSApp - Yet annother Sinatra Application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

YaSApp - Yet annother Sinatra Application

License:MIT License


Languages

Language:Ruby 100.0%Language:CSS 0.0%