A GraphQL API that lets you query for courses for aspiring catstronauts.
The API is hosted at: https://space-courses-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://space-courses-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 GetTracks {
tracksForHome {
id
title
thumbnail
length
modulesCount
author {
id
name
photo
}
}
}
query GetTrack($trackId: ID!) {
track(id: $trackId) {
id
title
author {
id
name
photo
}
thumbnail
length
modulesCount
numberOfViews
modules {
id
title
length
}
description
}
}
For any issues or problems concerning the course content, please refer to the Odyssey topic in our community forums.