-
pull mongo 4.4
docker pull mongo:4.4
-
run mongo on your machine
docker run -d -p 27017:27017 --name my-mongo mongo:4.4
- set up mongo
- install go version
1.19
- run command
go run main.go
- open swagger to see api documentation (optional)
http://localhost:8080/swagger/index.html