Coder Social home page Coder Social logo

erwindosianipar / authentication Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 2.0 41 KB

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

Dockerfile 1.33% Makefile 0.84% Go 97.83%
go golang gin gin-gonic clean-code clean-architecture unit-testing mocking

authentication's Introduction

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

authentication's People

Contributors

erwindosianipar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.