Hacker News new | ask | show | jobs
by Ui1ahcex 2234 days ago
That's awesome :)

I'm not sure I'm going to use it, though, as it still requires to install a lot of android stuff on the development computer.

Something I find to work well to make apps for myself on my phone without requiring the android ndk : using termux. I have installed nginx within it, then I write react apps that I load in my mobile browser and they make http request to golang apps that run in termux as well. The first time I experimented with that, I thought it would drain my battery, but it turns out I don't see any difference (I don't use a database, though, my apps work with files).

1 comments

Is there a reason you use nginx instead of serving the frontend using a Go static fileserver?
Only contextual reasons : I have already nginx to serve a few backend-less react apps and static files, so this was less code to write.