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.
- AWS CLI
$ sudo apt install awscli$ aws configure$ git clone https://gitlab.com/prateek-systango/serverless-rest-apis.git
$ cd serverless-rest-apis
$ bundle install
$ jets db:create db:migrate db:seed
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
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.