Movie Server with MongoDB and Go and Gin and Yaml for enviroment
- Clone the repo
git clone https://github.com/en1tan/movie-server-go.git
- Download deps
go mod download
- Download the swaggo binary swaggo
- Generate Swagger UI
swag init
- Run Projet
go run ./main.go
- Swagger Docs
http://localhost:5013/swagger/index.html
.
├── config
│ ├── config.go
│ ├── local.yaml
│ └── prod.yaml
├── controllers
│ └── movie-controller.go
├── database
│ └── database.go
├── go.mod
├── go.sum
├── main.go
├── models
│ └── movie-model.go
├── README.md
├── routes
│ ├── router.go
│ └── routes.go
├── services
│ └── movie-service.go
└── utils
├── errors.go
└── validations.go