Skip to content

lizhennessy/space-courses-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. 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.

Deploying to Railway

You can deploy your own copy of this using Railway!

Deploy on Railway

Running locally

  1. Clone the repo.
  2. Run the following:
npm install
npm run dev
  1. Open up http://localhost:4001 to access Apollo Sandbox.

  2. 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
  }
}

Getting Help

For any issues or problems concerning the course content, please refer to the Odyssey topic in our community forums.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published