Space Courses API
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. Check out the Operation Collections tab on the left for some sample queries to run.
Running locally
- 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
}
}