Go Getting Started from PluralSight. Simple webapp in golang
This hosts the app in 3000 port, (please change in main.go if the port is not available)
go run main.go
This will start the server and then you can use localhost for requests.
Added postman collections to help you test the CRUD calls since there is no UI Form.
- Create the environment variable
userId
- Import collections from JSON file
- It will import all tests and you can use it to run the REST APIs
- Builds the local docker image :
docker build --tag docker-go-webapp .
- Runs the container on 3000 port :
docker run -p 3000:3000 docker-go-webapp