3 ms·
> Tools like Electron are, essentially, not a choice yeah, they really are. people seem to forget that you can simply start a local web server, and direct the
by 38 3y ago
> Tools like Electron are, essentially, not a choice
yeah, they really are. people seem to forget that you can simply start a local
web server, and direct the user to visit http://localhost:8080 http://localhost:8080. here is one in
Go, literally 8 lines of code:
package main
import "net/http"
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, _ *http.Request) {
w.Write([]byte("hello world"))
})
http.ListenAndServe(":8080", nil)
}
- mgerullis 3y agoWow thanks, I really needed to see a hello world server example
- 38 3y agoyou're welcome
- blululu 3y agoThis is serious? Generally your app should aspire to having a better user experience than a low end phishing scam. Normal people really don't want to copy/paste a series of random looking computery numbers from one application into their web browser. At best it feels broken and more likely it feels like you are about to get hacked.
- 38 3y agoyes, I agree. god forbid we ask someone to visit a web site. you are so correct, that is way beyond most peoples ability.