DEV Community

A very short intro to the Roda web toolkit

Cristian Molina on October 04, 2019

Introduction There are several "lightweight" Ruby web & API libraries out there. Sinatra is probably the most known but there are ot...
Collapse
 
carc1n0gen profile image
Carson • Edited

Hi, I'm a PHP and Python developer who was looking in to ruby frameworks and wanted to try roda. So I found this guide hoping it would help me figure out how to get going. But nothing here shows anything the official documentation doesn't. So from a non-ruby developer, how the heck do you run a roda app?

Collapse
 
megatux profile image
Cristian Molina

Hi Carson, you are right, this little guide assumes Ruby web experience.
Basically you need a modern Ruby, the Roda gem installed and a 'config.ru' file with something like:

require './app'
run App

Then, you execute the app with

$ rackup config.ru

I'll add this to the guide or made a better comment here.
Thanks

Collapse
 
carc1n0gen profile image
Carson

Thank you! I've been looking for this everywhere! So many ruby micro frameworks assume I already knew what rack was!

Collapse
 
andrewbrown profile image
Andrew Brown 🇨🇦

I'm not a fan of Roda's DSL but the speed is very impressive and it has some sane security defaults.

Collapse
 
m0rozov profile image
Andrey

Thank you for the article!
I'll go see the guides

Thank you for the reference to the book 📖