This is a test project to mimic some Hashicorp products (nomad, waypoint, etc) which have the server and cli in a single executable
go build .
srv-cli server
this will run the server on port :4000, ready for requests
With making requests, there are two options
- use the cli
- use the browser.
In a separate terminal run the following. Remember the server should be running.
srv-cli up --{stop | s} 20
srv-cli down --{down | d} 20