erwindosianipar / authentication

Implementation Clean Code Architecture in Go (Golang) with gin-gonic and Unit Testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Authentication

Clean Architecture in Go with gin-gonic and Unit Testing

This is an example of implementation clean code architecture in Go with gin-gonic framework with some unit testing on the project.

Run the project

Run dependency manager

make dep

Run local deployment

make run

Run local unit test

make test

Run build project

make build

Core library

Library Usage
gin Base framework
gorm ORM library
postgres Database
jwt-go JWT authorization
go-sqlmock Database mock
logrus Logger library
viper Config library

And others library are listed on go.mod file

About

Implementation Clean Code Architecture in Go (Golang) with gin-gonic and Unit Testing


Languages

Language:Go 97.8%Language:Dockerfile 1.3%Language:Makefile 0.8%