Giter Site home page Giter Site logo

adascanbovich / cardano-graphql Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cardano-foundation/cardano-graphql

0.0 0.0 0.0 32.44 MB

GraphQL API for Cardano

License: Apache License 2.0

Dockerfile 0.20% JavaScript 0.40% TypeScript 21.61% Shell 1.26% Nix 75.60% TSQL 0.06% PLpgSQL 0.86%

cardano-graphql's Introduction

Cardano GraphQL


Overview

Cross-platform, typed, and queryable API service for Cardano, powered by Hasura to precisely query projected Cardano state from PostgreSQL.

The schema is defined in native .graphql, and used to generate packages for internal and client-side static typing. Apollo Server exposes the NodeJS execution engine over a HTTP endpoint, and includes support for open source metrics via Prometheus, and operation whitelisting.

A CLI aims to streamline the setup and deployment process.

GraphQL is a query language and execution environment with server and client implementations across many programming languages. The language can be serialized for network transmission, schema implementations hashed for assurance, and is suited for describing most domains.

TypeScript (and JS) has the largest pool of production-ready libraries, developers, and interoperability in the GraphQL and web ecosystem in general. TypeScript definitions for the schema, generated by GraphQL Code Generator, are available on npm.

Getting Started

  1. Clone the repository.
$ git clone [email protected]:input-output-hk/cardano-graphql.git
$ cd cardano-graphql
  1. Start cardano-node, cardano-db-sync-extended, postgresql and cardano-graphql components using Docker:
$ NETWORK=testnet docker-compose up
  1. Query the API once fully synced ๐ŸŽ‰
$ curl -X POST -H "Content-Type: application/json" -d '{"query": "{ cardano { blockHeight }}"}' http://localhost:3100/graphql

For more information, have a look at the Wiki ๐Ÿ“–.

How to install (Linux / Docker)

Docker (recommended)

See Using Docker.

From Source

See Building.

Documentation

Link Audience
API Documentation Users of the Cardano GraphQL API
Wiki Anyone interested in the project and our development process
Example Queries Users of the Cardano GraphQL API

cardano-graphql's People

Contributors

adascanbovich avatar arturwieczorek avatar craigem avatar dependabot[bot] avatar disassembler avatar ktorz avatar oneedoubled avatar rhyslbw avatar sam-jeston 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.