/glitch-service

GlitchService is a backend microservice powering GlitchCraft. GlitchService provides aggregated images consolidated from two different API services for consumption.

Primary LanguageRuby

GlitchService

GlitchService is a microservice using a Sinatra framework to expose a consilidated endpoint with two images based off a keyword search. The images are drawing from two API's: Pixabay and DeepAI. Pixabay returns an image based of relevant image tags created by users, whereas DeepAI utilizes a Text2Image AI to generate an image from scratch based off any given text. GlitchService works to consilidate these searches to return two images each in a single enpoint.

Checkout GlitchCraft to see how this service is used!

Versions

Ruby 2.5.3 Sinatra 2.1.0

Configuration

  1. Run git clone git@github.com:Kathybui732/glitch-service.git
  2. cd glitch-service
  3. bundle install
  4. Add API keys to .env file (follow instructions below)

API KEYS

  1. Follow the documentation from the Deep AI Docs and the [Pixabay Docs] to obtain api keys
  2. Add the keys to the .env file in the following format:
DEEP_API_KEY="[you api key here]"
PIXABAY_API_KEY="[you api key here]"

Test Suite

Run bundle exec rspec

Example endpoint

search endpoint for 'strawberries'

Contributors

Dan Sehl's GitHub & Linkedin

Jane Greene's Github & Linkedin

Kathy Bui's Github & Linkedin

Dorion's GitHub & Linkedin