Skip to content

alex-latham/knead_recipes_microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Knead Recipes Logo

Live App Available At Knead Recipes App

About

This is the API microservice for the Knead Recipes application. It recieves an API request, sends a request to the Spoonacular API, and returns the response back to the primary application. It was built using a Sinatra framework, and utilizes Faraday to establish it's connections.

Installing

Clone down the repository:

$ git clone https://github.com/alex-latham/knead_recipes_microservice.git

Run bundle to install all required gems:

$ bundle install

Configure Microservice:

Get a Spoonacular key from Spoonacular

Create var.env in root microservice directory

Insert Spoonacular API key into var.env

SPOONACULAR_KEY=<YOUR API KEY>

Launching the Microservice spins it up on localhost:9393:

$ bundle exec shotgun

Features

Requests

  • To return the information, in json, about a single recipe
http://localhost:9393/recipe?id=1
  • To return information about multiple recipes, provide the IDs without spaces and separated by commas
http://localhost:9393/recipes?ids=1,2,3
  • To return information about multiple recipes with additional (optional) query params

http://localhost:9393/recipes/compleSearch?includeIngredients=beef&time=120&type=main+course

Developers

Fred Rondina

Alex Latham

Mike Hernandez

David Tran

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages