Skip to content

SystangoTechnologies/serverless-ruby-simple-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless Rest APIs

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

Requirements

  • AWS CLI

Setup

Step 1 - Install AWS CLI

$ sudo apt install awscli

Step 2 - Configure AWS CLI

$ aws configure

Step 3 - Take clone of the repository

$ git clone https://gitlab.com/prateek-systango/serverless-rest-apis.git
$ cd serverless-rest-apis
$ bundle install

Step 4 - Setup Database

$ jets db:create db:migrate db:seed

Step 5 - Run Application

To start your the jets server locally, you need to run

$ jets s

Your Service must be running on http://localhost:8888

You can access the all the posts created using seed file on http://localhost:4000/posts

Deployment

To deploy your application to AWS, you need to just run a single command

$ jets deploy

Once the application is deployed you will get the API endpoint using which you can access Live APIs.

About

Simple application to create Serverless CRUD APIs using Jets framework of Ruby.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published