Yesterday I did manage to serve my web simple application from my android phone. By following some simple steps you can do it too, it’s ridiculous easy!
Open your android device and follow the steps below.
- Install & open termux
- Execute the following commands by order
$ pkg install git $ pkg install golang $ export GOPATH=/data/data/com.termux/files/home/go $ go get -u -v github.com/kataras/iris $ cd /data/data/com.termux/files/home/go/src/github.com/kataras/iris/_examples/hello-world $ go run main.go
- Open your favorite browser and navigate to http://localhost:8080
For those who understand better by watching media, I produced a simple video tutorial too!
Share your thoughts about this post and let me know what awesome apps you’re planing to build with Go + Iris!
This article was originally posted at medium