Golang RESTFUL API with Database MongoDB (NOSQL) and with ECHO framework, validate
you can import collection in test/postman/go-mongo.postman_collection
- you can install mongodb in your computer tutorial this link
- install dependencies go get
go get github.com/globalsign/mgo/bson
go get go.mongodb.org/mongo-driver/bson
go get github.com/labstack/echo
go get go.mongodb.org/mongo-driver/mongo
about all this fitur you can read this repo in WIKI or click this link
run Testing with this command
go test ./test
go run main.go
- build docker
docker build -t go-mongo-images .
- Run
docker run -it --rm --name cont-go-mongo go-mongo-images