A GraphQL API for recipes.
The API is hosted at: https://poetic-plates-recipes-api.herokuapp.com/
You can use the Sandbox Explorer to run queries. Head to https://studio.apollographql.com/sandbox and connect to the API https://poetic-plates-recipes-api.herokuapp.com/
.
To learn how to use this API to get started with GraphOS, check out our Odyssey course.
You can deploy your own copy of this using Railway!
- Clone the repo.
- Run the following:
npm install
npm run dev
-
Open up
http://localhost:4001
to access Apollo Sandbox. -
Run a few test queries:
query GetRandomRecipe {
randomRecipe {
id
name
cookingTime
prepTime
servings
instructions
readyTime
ingredients {
text
}
}
}
query GetRecipePage {
recipe(id: "recOZrH0RhjSjATBp") {
id
name
cookingTime
prepTime
readyTime
servings
instructions
ingredients {
text
}
}
recentlyAddedRecipes {
name
cookingTime
servings
}
}
For any issues or problems concerning the course content, please refer to the Odyssey topic in our community forums.