the source code and tutorial are fully following : https://blog.logrocket.com/rest-api-golang-gin-gorm/ for most part
- Gin (Http Server Library)
- Gorm (ORM)
Run docker build -t repo_name .
. it would build the docker image, then we could
docker container create --name image_id -e PORT=8080 -e INSTANCE_ID="mountain dew" -p 8080:8080 image_id
docker container start image_id
docker container run --name image_id --rm -itd -e PORT=8080 -e INSTANCE_ID="moiuntain dew" -p 8080:8080 image_id
docker container stop image_id
to know docker image_id run docker image ls -a