radical
A rails inspired ruby web framework
Learning
Check out the examples/ folder for some ideas on how to get started and when you're ready, check the docs/ folder for more details.
Quickstart
Create a directory with a config.ru and a Gemfile file inside of it
mkdir your_project
cd your_project
touch config.ru GemfilePut this inside of the config.ru
require 'radical'
class HomeController < Radical::Controller
def index
plain '/'
end
end
routes = Radical::Routes.new do
root :HomeController
end
app = Radical::App.new(
routes: routes
)
run appInstall the gems and start the server
gem install radical puma
pumaTest it out
curl localhost:9292
# => /