echo-app

module
v0.0.0-...-b6ba550 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2019 License: GPL-3.0

README

Echo-app is an example of golang rest api using echo framework, included :

  • Rest API
    • using echo framework to managing content and product
    • Splitting between model business and application presentation
    • Configurable the app to running in certain environment
    • request and response serializer and validation
    • ORM
    • Unit test
  • Vendoring a golang dependencies using glide as a package management
  • Hot reloading using realize
  • 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 .

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL