The Hasura Local Development setup's latest instructions are available here. The latest instructions have been simplified. The instructions below had helped me set the local development on Windows earlier:
- Open Command Prompt. Type minikube start. The first time you type in this command, the minikube ISO will download. After the download and install inside VirtualBox, you get a message saying that kubectl is now configured to use the cluster. Something like this:
![]() |
| Fig 1. First time starting minikube |
- Type minikube ip to get your local cluster's ip address. This will help you in accessing the kubernetes cluster via Windows.
- Go to https://beta.hasura.io/settings to get your API token and open your Command Prompt and type curl -H 'Authorization: Bearer <API_TOKEN>' -d '{\"ipaddr\": "\MINIKUBE_IP\"}' https://cloud.beta.hasura.io/v1/localdev , where <API_TOKEN> is replaced by the token you got earlier and MINIKUBE_IP is the ip you obtained from the same command earlier. You can even split the long command into small chunks using "^" after each line as shown below:




Comments
Post a Comment