In Chapter 3, we discuss a command line interface built from scratch which handles generating metadata from uploaded audio files, local flat file storage and retrieval of audio metadata. This CLI is just an example and for reference to the chapter. It was created on MacOS and other operating systems have not yet been tested at this time.
go build -o audiofile-cli cmd/cli/main.go
go build -o audiofile-api cmd/api/main.go
./audiofile-api
To change the default port, 8000, pass in the new port value with the -p
flag.
./audiofile-cli