8000 GitHub - wendelicious/tinker-toy
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

wendelicious/tinker-toy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

When you want to quickly prototype API models in GraphQL SDL.

Sort of like graphqleditor.com, but where the SDL files are on your local machine, where you're using your favorite IDE (not a clunkly SPA web page) to edit/modify GQL Schema SDL files and GraphiQL to navigate reponse types and argumentation in real time as you edit them.

Configure

You'll need jq, a CLI tool for dealing with JSON files.

Configure the folder where the SDL files are located in schema-config.json. This will recursively include all .graphqls files.

The SDL files can be anywhere on the host machine; they do not need to be in this project.

Default server port is 4002. Set it here if other things need that port.

{
    "serverPort": 4321,
    "schemaRootFolder": "/Users/you/projects/super-secret/schema"
}

Use

Fire up the nanobots.

Install Dependencies

$ yarn install

Run Schema Webservice

$ yarn start

Use GraphiQL (GQL Schema Browser)

Use any GQL schema browser to inspect the API models at http://localhost:4002. I recommend GraphiQL.

  • Using GraphiQL, MacOS didn't trust the developer. I had to go to Finder, right click on GraphiQL, click 'Open', then trust it.
  • From there it wasn't an issue

Other candidates include:

  • Apollo GraphQL Explorer
  • GraphQL Playground
  • Voyager
    • Not bad, but I have to assemble the entire group of files and paste them on the screen. No thanks.
  • ETC

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0