/giphylink

An app that fetches gifs from giphy and generates a link to them.

Primary LanguageRubyMozilla Public License 2.0MPL-2.0

giphylink

An app that fetches gifs from giphy and generates a shortlink to them.

Overview

This app was written to showcase connecting monoliths to microservices using Consul DNS interface. It was showcased at a talk given on Consul - "Bridging Past, Present, and Future infrastructure with Consul" at DevOps Barcelona.

Usage

gem install bundler
bundle install

Set environment variables

export GIPHY_API_KEY="API_KEY_HERE"

Optionally set redis password.

export REDIS_PASSWORD="REDIS_PASSWORD_HERE"

Run application

ruby app.rb

Open in browser

curl localhost:4567