Installing Hasura on Manjaro

Hasura is an open-source framework that allows developers to build scalable and real-time APIs easily. In this tutorial, we will guide you on how to install Hasura on Manjaro.

Prerequisites

Before we start, make sure you have the following:

Step 1: Download Hasura CLI

The first step is to download the Hasura CLI. Open a terminal and enter the following command:

curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | bash

This will download the Hasura CLI to your system.

Step 2: Check Hasura CLI version

Once the download is complete, check the version of Hasura CLI you've installed. You can do this by running the following command in a terminal:

hasura version

Make sure you have the latest version.

Step 3: Clone Hasura example project

Next, you need to clone the Hasura example project. Open a terminal and enter the following command:

git clone https://github.com/hasura/graphql-engine.git --branch stable --recurse-submodules

This will download the example project to your system.

Step 4: Start the Hasura GraphQL engine

Once you have cloned the example project, navigate to its directory using the cd command. For example:

cd graphql-engine/server

Next, start the Hasura GraphQL engine using Docker. Run the following command:

docker-compose up

This will start the Hasura GraphQL engine.

Step 5: Verify installation

To verify that Hasura is running correctly, open your web browser and navigate to http://localhost:8080. You should see the Hasura console interface.

Congratulations! You have successfully installed Hasura on Manjaro. You can now start building powerful and scalable APIs.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!