Prerequisites:
- Golang is installed
- Docker is installed
With Golang
- Run
go buildto compile the executable from the file "main.go" - Run the executable named "api" (ex: if using mac run
./api)
With Docker
- Run
docker run -p 8080:8080 csci4950tgt/api
- Run
docker build -t csci4950tgt/api .to build the image - Run
docker push csci4950tgt/apito push new image to Docker repo