- Install Go
- Run
go mod tidy
to generate thego.sum
file - Install docker engine for your target platform
go run main.go
Explore the Swagger Web UI in a browser of your preference by entering: http://localhost:3010/swagger/index.html
# Building the docker image
docker build -t go-service-considering-auth0:0.1.0 .
# Run the docker container
docker run --rm -p 5003:3010 -d go-service-considering-auth0:0.1.0
NOTE: Currrently there are some CORS related errors when utilizing the Swagger Web UI for testing HTTP controller endpoints in a browser of your preference by entering: http://localhost:5003/swagger
.
Failed to fetch.
Possible Reasons:
CORS
Network Failure
URL scheme must be "http" or "https" for CORS request.
Consider running the suggested curl command after pushing the Execute
button for the desired route in Swagger UI, e.g.
curl -X 'GET' \
'http://localhost:3010/api/v1/sas/public' \
-H 'accept: application/json'