Golang Mongodb Rest Api Example Using Echo
- Golang 1.16.x
- Docker 19.03+
- Docker Compose 1.25+
docker-compose up -d
- Golang 1.16.3
- Mongodb 4.4
- Echo
- Content Negotiation Support(Xml,Json Support)
- Pagination Support
- Mongo Driver
- Mongo Go Pagination
- Echo Swagger
- Swag
- Validator
- Air
- Template
- Sys
- Go Urn
- Go Colorable
- Universal Translator
You can access the Golang Swagger from the following url.
Please note that it requires Go 1.16+ since I use go mod
to manage dependencies.
# 1. install dependencies
go mod download
# 2. For less typing, you could add alias air='~/.air' to your .bashrc or .zshrc.
alias air='~/.air'
# 3. run it
air