DEV Community

Cover image for Build a Serverless Ruby App with Jets in 2 Minutes

Build a Serverless Ruby App with Jets in 2 Minutes

Jacob Herrington (he/him) on August 14, 2019

Cover Image: Man Holding Ice Cream Cone Under Cloud by Rakicevic Nenad There are a number of tools out there for building "serverless" application...
Collapse
 
angelyoung24 profile image
Angel Young

It's a super simple article.
I wanted to know if this works with Ubuntu. I have been getting an error message that looks like this

zeitwerk requires Ruby version >= 2.4.4. The current ruby version is 2.4.1.111.

I have been trying to update Ruby but it keeps saying this

ruby2.5 is already the newest version (2.5.5-1ubuntu1)

Collapse
 
jacobherrington profile image
Jacob Herrington (he/him)

Hmm. That sounds like an issue with rbenv, asdf, or RVM (whichever you use).

Collapse
 
rnrnshn profile image
Olimpio • Edited

I have this error when tryin to use it on windows

$ jets new blog
Traceback (most recent call last):        5: from C:/Ruby25-x64/bin/jets:23:in `<main>'
        4: from C:/Ruby25-x64/bin/jets:23:in `load'
        3: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jets-2.0.4/exe/jets:4:in `<top (required)>'
        2: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jets-2.0.4/exe/jets:4:in `each'
        1: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jets-2.0.4/exe/jets:5:in `block in <top (required)>'       
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jets-2.0.4/exe/jets:5:in `trap': unsupported signal SIGQUIT (ArgumentError)
Collapse
 
andrewbrown profile image
Andrew Brown 🇨🇦

The number one thing to look at is Tung's LinkedIn Profile as he is quite creative with media attachments and I've learned a few things from him.

I was bit hoping for a more complete example of Jets. Was wondering if this was backed by DynamoDB or Aurora Serverless if it was using Terraform or possibly CloudFormation to manage these resources.

Maybe if I can connect with Tung I could do a tech talk in Toronto at the Serverless meetup on Ruby on Jets.

The biggest question I would have asked Tung is why didn't he call it Ruby on Rockets.

Collapse
 
jacobherrington profile image
Jacob Herrington (he/him)

You can hook it up to Dynamo for sure. Planning to do a more complete article later.

Collapse
 
neriojnavea profile image
Nerio Navea

The commands looks similar to RoR's commands. Does Jets aims to follow the same 'convention over configuration' path?

Collapse
 
jacobherrington profile image
Jacob Herrington (he/him)

To a degree, Jets is very young and the commands are largely designed to smell like Rails.

Collapse
 
rnrnshn profile image
Olimpio

Very simple and straightforward...😱😱😱 Amazing. Can't wait for the next article...

Collapse
 
jacobherrington profile image
Jacob Herrington (he/him)

Thanks! This is just to get a couple of people interested in the framework. I'll write a much more useful article in the future 😉

Collapse
 
batbayar profile image
Batbayar Sukhbaatar

I don't get it. Is it like 1 big function? Or jets doing a magic on separation?

Collapse
 
jacobherrington profile image
Jacob Herrington (he/him)

The second one. The short version: every public method becomes a function, your routes become gateways, jobs are scheduled with cloudwatch, etc.

If you don't want to wait for me to write more articles, Tung has a ton of content at rubyonjets.com!