https://github.com/alamyudi/echo-app
an example of Golang rest API using Echo framework
https://github.com/alamyudi/echo-app
docker docker-compose echo-framework glide golang mysql realize
Last synced: 5 months ago
JSON representation
an example of Golang rest API using Echo framework
- Host: GitHub
- URL: https://github.com/alamyudi/echo-app
- Owner: alamyudi
- License: gpl-3.0
- Created: 2019-11-12T13:27:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-12T13:44:01.000Z (over 6 years ago)
- Last Synced: 2025-10-08T21:14:02.701Z (9 months ago)
- Topics: docker, docker-compose, echo-framework, glide, golang, mysql, realize
- Language: Go
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Echo-app is an example of golang rest api using [echo framework](https://echo.labstack.com), included :
- [x] Rest API
- [x] using echo framework to managing content and product
- [x] Splitting between model business and application presentation
- [x] Configurable the app to running in certain environment
- [x] request and response serializer and validation
- [ ] ORM
- [ ] Unit test
- [x] Vendoring a golang dependencies using glide as a package management
- [x] Hot reloading using realize
- [x] Dockerizing the app and mysql
- [ ] CI/CD
- [ ] Generate postman collection
### Running the app using docker
```
docker-compose up --build
```
access it using curl or postman in `http://localhost:8081/v1` as base url. for example :
```
curl -X GET \
http://localhost:8081/v1/product \
-H 'Accept: */*' \
-H 'Accept-Encoding: gzip, deflate' \
-H 'Authorization: Basic ZWNobzplY2hvZWg='
```
### Building the executable
```
env GOOS=linux GOARCH=amd64 go build -v .
```