devd - Go developed development HTTP server - OSS Daily

Daily Open Source News for IT Engineer and Designer

Breaking

Home Top Ad

Post Top Ad

Monday, October 2, 2017

devd - Go developed development HTTP server


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.

  1. $ devd -ol .
  2. 17:24:48: Route / -> reads files from .
  3. 17:24:49: Listening on http://devd.io:8000 (127.0.0.1:8000)
  4. 17:24:49: GET /
  5. <- 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

Post Bottom Ad