Skip to content

API Product writen in Golang using ECHO framework. Leveraging GORM for data handling, ZAP for logging, Docker for containerization

Notifications You must be signed in to change notification settings

zakariawahyu/go-api-product

Repository files navigation

Api Product Services ✨

Technologies - Libraries

Run with docker

Run docker-compose.yaml

$ make docker-compose

or

$ docker docker-compose up -d --build
  • After run this, don't forget to check all container are successfully started
  • There are 2 container, api_service and database

Run locally

  1. Create database container
$ make local

  or

docker-compose -f docker-compose.local.yaml up -d
  1. Run Service
$ make run

  or

$ go run cmd/main.go
  1. If use other container database, please set config file in config/config.yaml
Mysql:
  Host: localhost
  Port: 3306
  User: root
  Password: masukdb
  DbName: api_product
  MaxIdleConnection: 10
  MaxOpenConnection: 100

Swagger Docs

http://localhost:7070/swagger/index.html

About

API Product writen in Golang using ECHO framework. Leveraging GORM for data handling, ZAP for logging, Docker for containerization

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages