{"id":21952029,"url":"https://github.com/systangotechnologies/serverless-ruby-simple-crud","last_synced_at":"2025-04-23T04:05:04.809Z","repository":{"id":38295626,"uuid":"186600803","full_name":"SystangoTechnologies/serverless-ruby-simple-crud","owner":"SystangoTechnologies","description":"Simple application to create Serverless CRUD APIs using Jets framework of Ruby.","archived":false,"fork":false,"pushed_at":"2023-01-20T21:42:23.000Z","size":31,"stargazers_count":67,"open_issues_count":13,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-23T04:04:59.233Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SystangoTechnologies.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-14T10:35:13.000Z","updated_at":"2021-03-22T16:46:56.000Z","dependencies_parsed_at":"2023-01-28T20:00:44.841Z","dependency_job_id":null,"html_url":"https://github.com/SystangoTechnologies/serverless-ruby-simple-crud","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystangoTechnologies%2Fserverless-ruby-simple-crud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystangoTechnologies%2Fserverless-ruby-simple-crud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystangoTechnologies%2Fserverless-ruby-simple-crud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystangoTechnologies%2Fserverless-ruby-simple-crud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SystangoTechnologies","download_url":"https://codeload.github.com/SystangoTechnologies/serverless-ruby-simple-crud/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250366726,"owners_count":21418771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-29T06:19:14.352Z","updated_at":"2025-04-23T04:05:04.781Z","avatar_url":"https://github.com/SystangoTechnologies.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless Rest APIs\nThis is a simple serverless application build over Jets framework of the ruby. The application illustrates how we can create Serverless CRUD APIs using Jets framework.\n## Requirements\n* RVM\n* Ruby(2.5.1)\n* AWS CLI\n\n## Setup\n\n### Step 1 - Install RVM\n* Follow the steps given here: https://rvm.io/rvm/install, to install RVM in your machines\n\n### Step 2 - Install Ruby\nTo install ruby(2.5.1) in your machine, run following command\n```sh\n$ rvm install ruby-2.5.1\n```\n### Step 3 - Install \u0026 Configure AWS\n```sh\n$ sudo apt install awscli\n$ aws configure\n```\n\n### Step 4 - Take clone of the repository\n\n```ruby_on_rails\n$ git clone https://github.com/SystangoTechnologies/serverless-ruby-simple-crud.git\n$ cd serverless-ruby-simple-crud\n$ bundle install\n```\n\n### Step 5 - Setup Database\n\n```ruby_on_rails\n$ jets db:create db:migrate db:seed\n```\n### Step 6 - Run Application\n\nTo start your the jets server locally, you need to run\n\n```ruby_on_rails\n$ jets s\n```\nYour Service must be running on http://localhost:8888\n\nYou can access the all the posts created using seed file on http://localhost:8888/posts\n\n## Deployment\n Before we deploy, we need to create a database that AWS Lambda will have access to.\n We’ll also have to create and migrate the RDS database.\n```ruby_on_rails\n$ vim .env.development.remote # configure a remote RDS DB\n$ JETS_ENV_REMOTE=1 jets db:create db:migrate\n```\nOnce that is completed, let’s deploy our application to AWS Lambda.\n\n```ruby_on_rails\n$ jets deploy\n```\n\nOnce the application is deployed you will get the API endpoint using which you can access  APIs.\n\n## Security\n\nOnce API gateway is created, you must setup Usage plan along with their API Keys form API gateway console. For this, you can follow the [official doc](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-setup-api-key-with-console.html) for the same given by AWS.\n\nIf you want a custom authorization instead of this, just comment out the **before_filter:authorize** line in application.rb to make custom authorization work.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystangotechnologies%2Fserverless-ruby-simple-crud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsystangotechnologies%2Fserverless-ruby-simple-crud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystangotechnologies%2Fserverless-ruby-simple-crud/lists"}