Coder Social home page Coder Social logo

bogdanbiv / graphql-xtext Goto Github PK

View Code? Open in Web Editor NEW

This project forked from graph-quilt/graphql-xtext

0.0 1.0 0.0 1.56 MB

A GraphQL SDL lexer, parser, and validator that can read GraphQL grammar and produce executable JVM runtime objects.

License: Other

Xtend 41.56% Java 53.61% HTML 3.17% CSS 1.67%

graphql-xtext's Introduction

GraphQL-Xtext

CircleCI

A GraphQL SDL lexer, parser, and validator that generates a traversable Abstract Syntax Tree from your GraphQL schema. GraphQL-Xtext will generate pure Java Objects that can be used at runtime.

The EMF objects can be used to implement Apollo Federation Spec and build a purely java based service that is truly open source.

Installing the Software

This project uses java 8 and maven 3.3+.

  1. Download and install Eclipse 2019.

  2. Install Xtext SDK in Eclipse:
    a. In Eclipse, click Help --> Install New Software

    b. In Available Software, click Add to add a repository with location:

    http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/

    Add Repository
    c. Select and install Xtext Complete SDK (2.19.0)

  3. Restart Eclipse.

Setting up the Project

  1. Clone graphql-xtext
  2. Import the cloned project in Eclipse, click File --> Import Project --> Maven --> Existing Maven Project
  3. Under the directory com.intuit.graphql, right click on GenerateGraphQL.mwe2 --> Run As --> 1 MWE2 Workflow

Testing the grammar in an IDE

Right-click on the com.intuit.graphql.ide directory and Run As Eclipse Application

Building the project

mvn clean install

Language Server Support

Graphql-Xtext builds a Language Server executable under com.intuit.graphql.parent/com.intuit.graphql.ide/target/, named com.intuit.graphql.ide-x.y.z-ls.jar. This can be used to build generic application and cloud-based IDEs for the grammar.

theia-xtext is an example of a cloud-based IDE that uses the xtext language server jar.

License

Apache 2.0

Contributing

Read the Contribution guide

graphql-xtext's People

Contributors

ashpak-shaikh avatar ssko1 avatar hipstersmoothie avatar bhavinshah7 avatar vsriram2011 avatar

Watchers

James Cloos avatar

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.