/

hasura-header-illustration

DIY Realtime GraphQL BaaS

Set up a production ready GraphQL backend in a few minutes.

  • TickEasy setup in minutes.
  • TickBacked by Postgres.
  • TickSupport thousands of users @ $5 per month. Scale easily.
  • TickCreate tables on a UI and get instant GraphQL.
Hasura logo
DigitalOcean logo
Auth0 logo

Set up in 4 easy steps

STEP 1
Deploy GraphQL engine on DigitalOcean.
  • Create a 5$ droplet on DigitalOcean.
  • Use the "One-click app" to get automatically set up with Hasura GraphQL Engine & Postgres.
Magic
Handle thousands of users with a $5 droplet.
create-table
STEP 2
Create a table & get instant GraphQL APIs.
  • Create a table using the Hasura console (e.g. a todo table on Data > Create Table).
  • Try GraphQL from the Hasura console (GraphiQL).
Magic
Blazing-fast GraphQL queries, mutations and subscriptions ready to go!
create-table
STEP 3
Integrate auth with auth0.
  • Create an application on Auth0 (7000 free active users).
  • Configure Auth0 rules & callback URLs.
  • Configure Hasura to use your Auth0 keys.
  • Add access control rules on your tables via the Hasura console.
  • Include the Auth0 token as an authorization header in your GraphQL request.
Magic
Get high-performance authentication and authorization for your GraphQL API!
create-table
STEP 4
Custom logic with Remote Schemas.
  • Write a custom GraphQL Server.
  • Merge remote schema using console.
  • Query remote server from Hasura's unified GraphQL API.
Magic
Merge remote GraphQL schemas and get a unified GraphQL API.
create-table

Frequently Asked Questions

Can I use another hosting provider?
Yes! You can replace DigitalOcean with any other hosting provider as long as you can run a Docker container on them. Here are the docs for deployment.
Can I use another auth provider?
Yes! Hasura doesn’t enforce which authentication system you use. You are free to choose Passport.js, Firebase-Auth or your own custom auth solution. Here are the docs for setting up Authentication/Access Control.
Can I write custom backend code or business logic?
Absolutely! You can write custom GraphQL resolvers in your favourite language/framework and use schema stitching to merge with Hasura's GraphQL APIs.
Where is my data stored? How do I export/import?
Your data is stored in the same DigitalOcean Droplet with Postgres running as a Docker container. You can also switch to managed database hosting solution like Google Cloud SQL, Amazon RDS etc and point Hasura GraphQL Engine to that Database URL. You can use pg_dump to directly connect to the database for export/import.
I’m migrating from firebase. How do I switch?
Sure. If you are using Firebase Realtime Database, you can use our open-source CLI tool firebase2graphql. It takes data exported from firebase and imports it into Postgres via Hasura GraphQL engine.