Setup hasura/local-development

Steps to install Local Development:

Step 1:- Installing Virtual Box

A VirtualBox or VB is a software virtualization package that installs on an operating system as an application. VirtualBox allows additional operating systems to be installed on it, as a Guest OS, and run in a virtual environment. In 2010, VirtualBox was the most popular virtualization software application.

Why VirtualBox?

Using virtual machines can be extremely useful for a number of reasons. For example, you may want to run a virtual machine to try out software that you think might be unsafe, or you might want to try out another operating system without changing the way your computer is already set up.

You might also want to use it for security purposes; for example, you might want to create a virtual machine just for online banking so that you can be sure there are no spyware or trojans getting at your precious data.

Download Link

Step 2: (For Windows Users) Install git-bash

Git Bash for Windows is not just bash compiled for Windows. It's package that contains bash (which is a command-line shell) and a collection of other, separate *nix utilities like ssh, cat, find and others (which you run using the shell), compiled for Windows, and a new command-line interface terminal window called mintty.

Download Link

Step 3: Downloading hasuractl.exe

hasuractl.exe needs to be executed from command linke which installs minikube which in turn would run Kubernetes cluster inside the Virtualbox.

Download hasuractl.exe from here and add it to your System path as shown here.

Step 4: Install latest kubectl (>= 1.6.0)

Download Link

Post installation steps:

Create an account on beta.hasura.io if you do not have one.

Run this command and login with credentials

hasuractl login

After you have successfully logged in, run this command:

hasuractl local start

It might take a long time for this to finish, depending on your internet connection. The command exits by pointing you to a url to login to the console.

Show your support

Clapping shows how much you appreciated Satyam Singh’s story.