Florida
Florida is Sinatra
Based simple Web Application framework.
Installation
Add this line to your application's Gemfile:
gem 'florida'
And then execute:
$ bundle
Or install it yourself as:
$ gem install florida
Usage
write application ruby script.
require 'florida'
class HomeController < Florida::Controller::Base
def index
'Hello Florida!!'
end
end
class MyApplication < Florida::Application::Base
routings do
path "/", to: HomeController
end
end
and script execute in ruby.
$ ruby example.rb
[2014-10-17 20:23:52] INFO WEBrick 1.3.1
[2014-10-17 20:23:52] INFO ruby 2.0.0 (2014-05-08) [x86_64-linux]
[2014-10-17 20:23:52] WARN TCPServer Error: Address already in use - bind(2)
[2014-10-17 20:23:52] INFO WEBrick::HTTPServer#start: pid=21616 port=4567
Access to Your WebBrowser in http://localhost:4567
.
Show Hello Florida!!
Text!!
Contributing
- Fork it ( https://github.com/myun2ext/florida/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request