Clutch

Building API with the Jets Ruby Serverless Framework

Building API with the Jets Ruby Serverless Framework
Average rating: 1
(1 votes)

Recently we collected the web APIs best practices for you. In this blog post, we will cover how to build a simple API service with the Jets Ruby Serverless Framework.

Jets is a Ruby Serverless Framework that includes everything required to build an application and deploy it to AWS Lambda.

The Jets new command has a few different modes: html, api, and job. We’ll use the handy api mode for this tutorial to create a starter project designed for APIs. Before we deploy, we need to create a database that AWS Lambda will have access to.

You can follow the AWS RDS docs: Create an RDS DB Instance.

We’ll also have to create and migrate the RDS database.

At the end of the deploy, you’ll see the API Gateway url that looks something like this https://7bfi3qwj61.execute-api.us-west-2.amazonaws.com/dev/. Note, your URL will be different.

Feel free to explore more here, on GitHub, and in the official documentation.

P.S. Capacitor is a cross-platform API to write modern web apps and make it easy to build web apps that run natively on iOS, Android, Electron, and the web.

Find more of neat Ruby/Rails open source repositories in our monthly Rails GitHub digest!

Rate this article, if you like it

Thanks! You’ve rated this material!

Got a project? Let's discuss it!

*By submitting this form you agree with our Privacy Policy.

Mailing & Legal Address

Syndicode Inc. 340 S Lemon Ave #3299, Walnut CA, 91789, USA

Visiting & Headquarters address
Kyiv Sofiivska 1/2a, 01001, Kyiv, Ukraine
Dnipro Hlinky 2, of. 1003, 49000, Dnipro, Ukraine
Email info@syndicode.com
Phone (+1) 9035021111