Code Monkey home page Code Monkey logo

zenodotus's Introduction

Zenodotus

When using GraphQL a tool to visualize the schema would be very handy. And there is one: graphql-voyager.

Voyager is great if you have a living GraphQL server. Just add a middleware and get a nice looking interactive schema!

The problem comes where you need to share this docs with your teammates. You cirtainly can send them a docker image with your server, or repository so that they can do everything themselves. But both ways aren't very comfortable when collaborating with less "technical" people.

The downside of voyager is that it needs a real working GraphQL server with introspection.

Here is where zenodotus comes to play. The idea is simple: deploy zenodotus as a docker container to machine you like. Set a repository, branch (or tag or event commit hash) and paths to schema files. The service will fetch files, checkout what is needed and run it's own introspection "sub-server".

Usage

Atm the repository is set with environment variable and the ref is passed by ref query parameter (default is master)

http://localhost:4001?ref=develop

Deploy

See compose.yaml. Note that two ports must be forwarded - one for the voyager page itself and the second - for introspection server.

TODO

The plan is to do user-friendly branch (and maybe repos) switching with React.

zenodotus's People

Contributors

eonae avatar

Watchers

 avatar

zenodotus's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.