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.
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!