Get started with GraphQL in just 30 seconds with Hasura GraphQL Engine on Heroku
At Hasura, we have always been huge fans of Heroku’s git push based deployment workflow. All of our engineers have, at some point, had side projects running with Heroku, and one of our most popular open source projects, Gitkube, brings the Heroku workflow to a Kubernetes cluster.
Our aim with the Hasura GraphQL Engine is to help you setup a GraphQL server with the least amount of friction, so that you can start building applications without any setup. With that in mind, we present the Hasura deployment on Heroku’s free tier.
30 seconds to GraphQL zen!
Basic deployment of the Hasura GraphQL Engine on Heroku
In case you already have data, Hasura allows you to import it and begin using GraphQL queries instantly. Here’s how:
Import your existing Postgres database and get GraphQL APIs with Hasura
(For this demo, we used the freely available Chinook data set)
We designed Hasura to allow developers running existing Postgres based applications to migrate to GraphQL without having to write any backend code.
If you are already running on Heroku Postgres, Hasura can connect directly to give you GraphQL APIs. You can get step-by-step instructions here.
While designing Hasura, we had two objectives:
Consequently, we optimised Hasura for low memory footprint & low latency.
Hasura GraphQL Engine gives you ~600 req/s while consuming only 50 MB of RAM on Heroku’s free tier
We have written about the design decisions involved in this blogpost.
We have just open sourced the Hasura GraphQL Engine. Check out the complete repo on Github, and let us know your thoughts! We would love to hear from you- we are very active on our discord server.
Hasura gives you instant GraphQL APIs over any Postgres database without having to write any backend code.
If you would like to stay updated on all things Hasura, you can sign up for our newsletter.