window.pipedriveLeadboosterConfig = { base: 'leadbooster-chat.pipedrive.com', companyId: 11580370, playbookUuid: '22236db1-6d50-40c4-b48f-8b11262155be', version: 2, } ;(function () { var w = window if (w.LeadBooster) { console.warn('LeadBooster already exists') } else { w.LeadBooster = { q: [], on: function (n, h) { this.q.push({ t: 'o', n: n, h: h }) }, trigger: function (n) { this.q.push({ t: 't', n: n }) }, } } })() What is Ruby on Jets and how to build an app using it? - The Codest
The Codest
  • About us
  • Services
    • Software Development
      • Frontend Development
      • Backend Development
    • Staff Augmentation
      • Frontend Developers
      • Backend Developers
      • Data Engineers
      • Cloud Engineers
      • QA Engineers
      • Other
    • It Advisory
      • Audit & Consulting
  • Industries
    • Fintech & Banking
    • E-commerce
    • Adtech
    • Healthtech
    • Manufacturing
    • Logistics
    • Automotive
    • IOT
  • Value for
    • CEO
    • CTO
    • Delivery Manager
  • Our team
  • Case Studies
  • Know How
    • Blog
    • Meetups
    • Webinars
    • Resources
Careers Get in touch
  • About us
  • Services
    • Software Development
      • Frontend Development
      • Backend Development
    • Staff Augmentation
      • Frontend Developers
      • Backend Developers
      • Data Engineers
      • Cloud Engineers
      • QA Engineers
      • Other
    • It Advisory
      • Audit & Consulting
  • Value for
    • CEO
    • CTO
    • Delivery Manager
  • Our team
  • Case Studies
  • Know How
    • Blog
    • Meetups
    • Webinars
    • Resources
Careers Get in touch
Back arrow GO BACK
2019-09-23
Software Development

What is Ruby on Jets and how to build an app using it?

Patrycja Slabosz

AWS Lambda is an event-driven, serverless computing platform provided by Amazon as a part of the Amazon Web Services.This service runs code in response to events and automatically manages any computing resources required. It was introduced in November 2014.

Sounds great? Did not for Ruby Developers. Until 29th of November 2018, Ruby was not supported to start serverless revolution. But then, Jets came, and everything has changed.

As the official Ruby on Jets website proudly says:

“Ruby on Jets allows you to create and deploy serverless services with ease, and to seamlessly glue AWS services together with the most beautiful dynamic language: Ruby. It includes everything you need to build an API and deploy it to AWS Lambda. Jets leverages the power of Ruby to make serverless joyful for everyone”

Indeed, working with Jets, especially for someone who’s somehow experienced in Rails or Sinatra, becomes relatively easy and pleasant.

To prove it, in this article we’re going to build a simple serverless application.

Ready?

Building application

What we’re gonna do, is create a very simple Jets app. This will provide us with some basic information of how to create routes, controllers and actions, and how to deploy to AWS Lambda. To keep it simple and easy, we’re gonna use just one endpoint, that will return random Chuck Norris joke.

Installation

First of all, let’s install Jets gem globally. In your console, type:

Code1

Then, create new Jets project with:

code2

(Options —mode api and —no-database are not required, it’s just gonna speed up installation a little, since we don’t need any database or views here.)

Now, in your chuck-norris-jokes directory run:

Code3

Entering localhost:8888 in your browser, you should see something like this:

Jets

If this is what you see – congrats, you’ve done everything correctly!

Controller and routes

What we’re about to do now is create our first Jets controller.

In the console type:

Code4

This will create our JokesController with one action inside – create. By default, Jets create the „get” type route for the action, so we have to modify it.

In routes.rb file change get „jokes/create” to post ‘jokes’, to: „jokes#create”.

Coding

Fetching the request

To fetch some Chuck Norris stuff we need to make a call to the John Doe Api. Then, we’re gonna respond with json containing the fetched joke.

Ruby

Testing locally

We can run this locally to test that we are getting the expected response. What we’re going to do is make a POST request to our local server using curl.

(Watch out: make sure your server is still running).

Code5

Deploy

Providing you have an AWS account with appropriate policies (you can find them in official Jets documentation), the last thing you need to do is simply run:

Code6

This will upload our application to AWS.

When the deploy is finished, you’ll be provided with your API gateway endpoint (most likely the last line in the console).

Test your AWS Lambda application

So now, finally it’s time to test our deployed app!

We can do this using curl again, but now replacing localhost with API gateway endpoint, we were provided with.

Code7

Summary

That’s all folks! Hope you enjoyed this brief look into Ruby on Jets and serverless world.

Read more:

  • Object oriented programming. That’s not how you think
  • Codest’s weekly report of best tech articles. Speed and scale software (7)
  • The Ruby Conference of Cracow. We were there!

Related articles

Software Development

Build Future-Proof Web Apps: Insights from The Codest’s Expert Team

Discover how The Codest excels in creating scalable, interactive web applications with cutting-edge technologies, delivering seamless user experiences across all platforms. Learn how our expertise drives digital transformation and business...

THECODEST
Software Development

Top 10 Latvia-Based Software Development Companies

Learn about Latvia's top software development companies and their innovative solutions in our latest article. Discover how these tech leaders can help elevate your business.

thecodest
Enterprise & Scaleups Solutions

Java Software Development Essentials: A Guide to Outsourcing Successfully

Explore this essential guide on successfully outsourcing Java software development to enhance efficiency, access expertise, and drive project success with The Codest.

thecodest
Software Development

The Ultimate Guide to Outsourcing in Poland

The surge in outsourcing in Poland is driven by economic, educational, and technological advancements, fostering IT growth and a business-friendly climate.

TheCodest
Enterprise & Scaleups Solutions

The Complete Guide to IT Audit Tools and Techniques

IT audits ensure secure, efficient, and compliant systems. Learn more about their importance by reading the full article.

The Codest
Jakub Jakubowicz CTO & Co-Founder

Subscribe to our knowledge base and stay up to date on the expertise from the IT sector.

    About us

    The Codest – International software development company with tech hubs in Poland.

    United Kingdom - Headquarters

    • Office 303B, 182-184 High Street North E6 2JA
      London, England

    Poland - Local Tech Hubs

    • Fabryczna Office Park, Aleja
      Pokoju 18, 31-564 Kraków
    • Brain Embassy, Konstruktorska
      11, 02-673 Warsaw, Poland

      The Codest

    • Home
    • About us
    • Services
    • Case Studies
    • Know How
    • Careers
    • Dictionary

      Services

    • It Advisory
    • Software Development
    • Backend Development
    • Frontend Development
    • Staff Augmentation
    • Backend Developers
    • Cloud Engineers
    • Data Engineers
    • Other
    • QA Engineers

      Resources

    • Facts and Myths about Cooperating with External Software Development Partner
    • From the USA to Europe: Why do American startups decide to relocate to Europe
    • Tech Offshore Development Hubs Comparison: Tech Offshore Europe (Poland), ASEAN (Philippines), Eurasia (Turkey)
    • What are the top CTOs and CIOs Challenges?
    • The Codest
    • The Codest
    • The Codest
    • Privacy policy
    • Website terms of use

    Copyright © 2025 by The Codest. All rights reserved.

    en_USEnglish
    de_DEGerman sv_SESwedish da_DKDanish nb_NONorwegian fiFinnish fr_FRFrench pl_PLPolish arArabic it_ITItalian jaJapanese ko_KRKorean es_ESSpanish nl_NLDutch etEstonian elGreek en_USEnglish