$ go clone https://github.com/dean2032/go-project-layout.git
$ cd go-project-layout
$ go build -o app
Run a subcommand of app. Two subcommands are provided:
file_server: this subcommand will run a file download web server exposing the current directory on port 8888:
$ ./app file_server -verbose
api_server: this subcommand will run a http api server. Mysql db must be installed and configured correctly before it can run properly. See ./deployments/migration for more details.