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!
Ruby 2.5.3 Sinatra 2.1.0
- Run
git clone git@github.com:Kathybui732/glitch-service.git
cd glitch-service
- bundle install
- Add API keys to .env file (follow instructions below)
- Follow the documentation from the Deep AI Docs and the [Pixabay Docs] to obtain api keys
- 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]"
Run bundle exec rspec