Skip to content

penx/graphql-server-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Apollo Server with offline playground support

This repository shows how to modify the Apollo Server getting started application to support running GraphQL Playground while offline.

For full functionality, graphql/graphql-playground#845 needs to be merged and included in the @apollographql/graphql-playground fork.

In the meantime, some manual setup is needed:

  • git clone [email protected]:prisma/graphql-playground.git
  • (if PR not merged, point to penx:feature/cdn-url-config-option fork:branch)
  • cd graphql-playground/packages/graphql-playground-html
  • yarn
  • edit package.json and add the @apollographql scope to the package name
  • yarn link
  • cd to the clone of this project
  • yarn
  • yarn link @apollographql/graphql-playground-html
  • yarn start

You should now be able to navigate to http://localhost:4000/graphql and see GraphQL playground load - inspect source and you should see the scripts and styles in the head are now loading from localhost rather than the CDN.

About

Apollo Server with offline playground support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published