0

ProtoGrapQL

 4 years ago
source link: https://www.tuicool.com/articles/vY7ZnuJ
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

3yArmiU.png!web

ProtoGraphQL

ProtoGraphQL is a prototyping tool that helps developers build and visualize GraphQL schemas and queries without writing any code. Users simply input their relational database tables and ProtoGraphQL will dynamically create a customized and functional GraphQL Apollo Server readily available for export.

ProtoGraphQL is currently in beta. We would appreciate if you could post any issues to our GitHub – we are actively looking for areas for improvement and we welcome feedback from the community.

Upcoming releases include adding visual indicators for table relationships in the “Schema” view, enabling users to create customizable GraphQL mutations, and extending support for NoSQL databases such as MongoDB.

* We recently added support for users to view the structures and relationships of their tables using our GraphQL schema tree visualizer!

Getting Started:

  1. Download for Mac , Windows , or Linux

  2. Extract file

  3. Run app

How to Use:

  1. When the application loads, click on Add Table and populate the table form with a name and new fields. Optionally, you may also use the last three inputs in the form to create relationships to other tables. When you are done, click Save .

6rQrU3Q.gif

  1. Navigate to the Schema , Code , and Visualize tabs to toggle views:

    • Schema - view, edit, or delete tables you've added

    vqiQn2m.png!web

    • Code - view generated GraphQL and SQL code before export

    aIB77zU.png!web

    • Visualize - view the GraphQL schema intuitively as a simple tree

yqQb6nm.gif

  1. Export the code by clicking the Export icon.

VBjmqeB.png!web

  1. Enter your Postgres database URI and then select the directory you want to save your executable GraphQL server.

How to Run GraphQL Server:

There are several libraries we could have used to create a GraphQL server, but we decided to use Apollo Server – the most popular library to setup an endpoint for responding to incoming GraphQL requests in JavaScript.

  1. Extract apollo-server.zip file

  2. Open the project

  3. Install dependencies

npm install
  1. Run the server and visit localhost:3000
npm start
  1. Use Apollo Server Playground to mock client GraphQL queries and responses to your server. Learn more about constructing GraphQL Queries here

Contributors:

RzaEjie.png!web


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK