https://github.com/haitwang-cloud/golang-echo-sample
Make an out-of-the-box backend based on golang-echo
https://github.com/haitwang-cloud/golang-echo-sample
Last synced: 7 months ago
JSON representation
Make an out-of-the-box backend based on golang-echo
- Host: GitHub
- URL: https://github.com/haitwang-cloud/golang-echo-sample
- Owner: haitwang-cloud
- License: apache-2.0
- Created: 2021-12-31T06:52:41.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-30T06:41:40.000Z (over 2 years ago)
- Last Synced: 2024-06-21T09:43:19.523Z (about 2 years ago)
- Language: Go
- Size: 12.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UFES-TFAP-TEST
Make an out-of-the-box backend based on golang-echo
[](https://github.com/haitwang-cloud/golang-echo-sample/actions/workflows/golangci-lint.yml)
```bash
Echo + MySQL + go-resty + Gorm + ZAP +configor
```
### Project screen shoot

```bash
http://localhost:8080/swagger
```
### Tree view
```bash
.
├── Dockerfile
├── LICENSE
├── README.md
├── application.yml
├── controller
│ ├── bible.go
│ ├── models.go
│ └── resp.go
├── docker
│ ├── build.sh
│ └── run.sh
├── docs
│ ├── docs.go
│ ├── swagger.json
│ └── swagger.yaml
├── go.mod
├── go.sum
├── main.go
├── models
├── router
│ ├── bible.go
│ ├── router.go
│ └── url.go
├── sample.gif
└── utils
├── config
│ └── config.go
├── logger
│ └── logger.go
├── middlewares
│ ├── error.go
│ ├── initMiddleware.go
│ └── wrapper.go
└── util.go
```
## Docker
### how to build
```bash
make build
```
### how to run
```bash
make test
```
## References
- [https://gorm.io/](https://gorm.io/)
- [https://echo.labstack.com/](https://echo.labstack.com/)
- [https://github.com/uber-go/zap](https://github.com/uber-go/zap)
- [https://github.com/jinzhu/configor](https://github.com/jinzhu/configor)
- [https://github.com/go-resty/resty](https://github.com/go-resty/resty)
- [https://github.com/swaggo/swag#declarative-comments-format](https://github.com/swaggo/swag#declarative-comments-format)
- [https://github.com/ybkuroki/go-webapp-sample](https://github.com/ybkuroki/go-webapp-sample)
- [https://github.com/brpaz/echozap](https://github.com/brpaz/echozap)
- [https://github.com/sandipb/zap-examples](https://github.com/sandipb/zap-examples)
## Commit History
[](https://the-commit-history.vercel.app/#haitwang-cloud/golang-echo-sample&Timeline)