3 ms·
I wrote something like this [1] for the team at my old workplace. We mainly worked on static html files but some functionality required loading via http. Many o
by ssddanbrown 3y ago
I wrote something like this [1] for the team at my old workplace. We mainly worked on static html files but some functionality required loading via http. Many of the devs were quite new to development in general, so I built a simple static server in Go, as an exe which they could set as the default for `.html` files, and therefore they could just open html files on the webserver via double-click as normal. The program would watch the directory (if not already open and watching) then open the right path in the default browser. I also built-in livereload, management via tray icon and a basic web UI.
[1] https://github.com/ssddanbrown/webby https://github.com/ssddanbrown/webby