2.3) Setup hasura/local-development

Week 2 : (Setup – Hasura LocalDevelopment)

 

After learning a lot this week, it was the time to learn more about the Hasura. We were required to setup the Hasura Local Development. It took me 4 times to install, not because its tough, but due to some problems at my end. The documentation which Hasura has provided is up-to the mark and easy to follow.

Hasura
Credit: Hasura

The problem which I faced the most during the setup was with Kubernets, because I faced problem with the virtual box. Make sure you install the current stable version of the Virtual box to avoid any error. The solution which helped me was  to remove kubernetes completely and installed a proper stable version of Virtual Box.

 

Hasura Local Development is quite straight-forward, and easy to setup, you could check here

 

 

Steps were as follows.

1. Installed  virtualbox You should have atleast 4GB of RAM  along with 64bit Linux OS.

2.Installation hasuractl   with the help of curl command (curl -Lo hasuractl https://storage.googleapis.com/hasuractl/v0.1.2/linux-amd64/hasuractl && chmod +x hasuractl && sudo mv hasuractl /usr/local/bin/)

 

3. Starting Hasura

a. Creating an account on beta.hasura.io .

b. Now running hasuractl login in terminal. It ask for the username and password, we need to provide the email-id  and password which we provided during registration on beta.hasura.io

c. Once we have successfully logged in,  we run this command: hasuractl local start, it will download docker images or roughly over 1GB.

On running the command we get the following output:

 

Output on running hasuractl local start
                                                                             Output on running hasuractl local start

 

 

What is a 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. Supported operating systems include Windows XP, Windows Vista, Windows 7, macOS X, Linux, etc.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s