Skip to content

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

Notifications You must be signed in to change notification settings

erwindosianipar/authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages