It is natural to establish an HTTP server locally when developing. Although it is good to set up an HTTP server with one liner using script language, it is regrettable that too much function is done too much. I would like a live reload at least.
I would like to use devd here. This is a Go development server for development.
How to use devd
devd merely specifies the directory and executes it.
$ devd -ol .
17:24:48: Route / -> reads files from .
17:24:49: Listening on http://devd.io:8000 (127.0.0.1:8000)
17:24:49: GET /
<- 200 OK 1.5kB
A live reload is built in by default, and when you edit the file, the web browser is reloaded immediately. It also includes a routing function and a reverse proxy so that it can be used for more practical development. What is more simple than usability is its appeal.
devd is Go's open source software (MIT License).
No comments:
Post a Comment