GithubHelp home page GithubHelp logo

mkipcak / marvelql Goto Github PK

View Code? Open in Web Editor NEW

This project forked from novvum/marvelql

0.0 1.0 0.0 78.59 MB

An open source GraphQL API that wraps the Marvel REST API

Home Page: https://api.marvelql.com/

Shell 0.69% TypeScript 79.09% JavaScript 2.84% Python 17.38%

marvelql's Introduction


MarvelQL


An open source GraphQL API that wraps the Marvel REST API
Try it out now: https://api.marvelql.com/

Description

MarvelQL allows you to send GraphQL queries to Marvel’s REST API to get information about characters, comic series, stories, creators and much more.

Features

  1. Query information from Marvel REST endpoints. Here’s a full list of endpoints that can be queried: https://developer.marvel.com/docs
  2. Documentation explaining how to use each endpoint and which arguments can be added to queries
  3. Deployment to GraphQL Playground so that you can test queries right away

Installation

Make sure you are running Node version 8.10.0

Install using yarn

yarn

Run the server with yarn start

yarn start

A Playground instance will be opened at http://localhost:4000/ (the port number will be printed to the console) to explore the API.

Usage

Send a query in GraphQL playground to get a list of characters and information about them.

{
  characters {
    id
    name
    description
  }
}

Get specific information about one character. Try nesting queries to get more information comics that character is in.

{
  getCharacter(where: { name: "Iron Man" }) {
    id
    name
    description
    comics {
      name
    }
  }
}

Explore the docs and try out different queries.

Elm Client Generation

Follow these installation instructions to add elm-graphql to your Elm project. To generate your client code, run the following command:

elm-graphql https://api.marvelql.com/ --base Marvelql --output src/generated

In step 3 of the installation instructions, you can replace the example api script with the Marvelql command above.

If you need assistance using the generated client code, refer to elm-graphql for examples.

Roadmap

We have plans to keep improving MarvelQL. Here's what is next:

  1. Improve the speed of queries
  2. Implementation with Hasura, Neo4j, and Elm

Contributing

This is an open source project. To learn how to contribute, please check out our contributing guide.

License

MIT © Novvum


Made with ❤️ by Novvum

marvelql's People

Contributors

allicolyer avatar glitteringkatie avatar jorge0521 avatar rohit-ravikoti avatar trevheath avatar

Watchers

 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.