Skip to content

aditiapratama1231/go-cleanarch-boilerplate

Repository files navigation

Product Microservice

Using GO GIN + GO Kit

Requirements

  • Install Golang v1.13
  • Install soda to create migration database.

Instalation

We are using Go Gin for Web Framework to build our APIs

Install all Libraries from go mod

go get .

create .env file

cp .env.example .env

Migration up

Using soda to up our migration files in the migrations folder

soda migrate up

Running App

Root file in main.go

go run main.go

API

List Products

Request

GET /api/v1/products

Show Product

Request

GET /api/v1/product/{id}

Create new Product

Request 

POST /api/v1/products

Payload :

{
    "data": {
        "product_name": "Example",
        "product_description": "Example description",
        "qty": 1 
    }
}

About

Golang Boilerplate with Clean Architecture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published