Skip to content

Get dad jokes by SMS using Ruby, the Jets framework and AWS Lambda

Notifications You must be signed in to change notification settings

philnash/dad-jokes-jets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dad jokes over SMS using Ruby, Jets and AWS Lambda

This example application combines the icanhazdadjoke API and Twilio SMS using the Jets framework and AWS Lambda.

You can read about how it was built in the blog post Serverless Ruby on AWS Lambda with the Jets framework

Running the application locally

To run the application locally, follow these steps:

  1. Clone the repo and change into the directory

    git clone https://github.com/philnash/dad-jokes-jets.git
    cd dad-jokes-jets
  2. Install the dependencies with bundler

    bundle install
  3. Run the application with jets

    bundle exec jets serve

You can then make POST requests to the /messages endpoint. For example:

curl --data "" http://localhost:8888/messages
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Message>What’s the advantage of living in Switzerland? Well, the flag is a big plus.</Message>
</Response>

Check out the Jets documentation for more details on building with Jets.

About

Get dad jokes by SMS using Ruby, the Jets framework and AWS Lambda

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published