Coder Social home page Coder Social logo

sarvagnya / graphql-engine-heroku Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hasura/graphql-engine-heroku

0.0 0.0 0.0 619 KB

Blazing fast, instant realtime GraphQL APIs on Postgres with fine grained access control, also trigger webhooks on database events.

Home Page: https://hasura.io

Dockerfile 100.00%

graphql-engine-heroku's Introduction

Hasura GraphQL Engine on Heroku

GitHub stars

Hasura GraphQL Engine is a blazing-fast GraphQL server that gives you โšก instant, realtime GraphQL APIs over Postgres, with webhook triggers on database events for asynchronous business logic.

Hasura helps you build GraphQL apps backed by Postgres or incrementally move to GraphQL for existing applications using Postgres.

Deploy Hasura GraphQL Engine on Heroku and get a GraphQL endpoint in under 30 seconds ๐Ÿ•

Read more at hasura.io and the docs.

Quickstart

1. Deploy to Heroku

Deploy to Heroku and instantly get a realtime GraphQL API backed by Heroku Postgres:

Deploy to Heroku

Create New App - Heroku

2. Open Hasura Console

Once the deployment is complete, click on the View button as marked above. This will take you to the Hasura Console, where you can connect your database, create a table and make your first GraphQL query.

Hasura Console

3. Connect a database

Head to the Data tab on the console and connect your database. If you do not have an existing database, you can connect to the Heroku Postgres database that was set up with your deployment using the DATABASE_URL env var.

heroku_connect_db

4. Create a table

Navigate to Data -> Create table on the console and create a table called profile with the following columns:

name type
id Integer (auto-increment)
name Text

Choose id as the Primary key and click the Create button.

Hasura Console - Create table

5. Insert sample data

Once the table is created, go to the Insert Row tab and insert some sample rows:

Thor
Iron Man
Hulk
Captain America
Black Widow

Hasura Console - Insert rows

6. Try out GraphQL

Switch to the GraphiQL tab on top and execute the following GraphQL query:

query {
  profile {
    id
    name
  }
}

Hasura Console - GraphQL query

Support & Troubleshooting

Feel free to talk to us on Discord about anything and everything. You can also contact us using one of the following channels:

Next steps

Further reading

graphql-engine-heroku's People

Contributors

0x777 avatar alexander-mart avatar arvi3411301 avatar coco98 avatar codingkarthik avatar dliub avatar ecthiender avatar hasura-bot avatar karthikvt26 avatar marionschleifer avatar praveenweb avatar rakeshkky avatar rikinsk avatar scriptnull avatar scriptonist avatar shahidhk avatar shark-h avatar tirumaraiselvan avatar wawhal 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.