girdharshubham / Boofer

Go-Gin Example with router group called `v1` and basic auth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go

Boofer

Gin is a web framework written in Go (Golang). This template provides a ready to use template for building web applications. It includes a router group(/v1) set up with basic auth, 67% unit test coverage right out of the box, a basic build using github actions, and a makefile to simplify building this app.

Directory Structure

.
├── README.md
├── api
│   └── v1.go
├── bin
│   └── boofer
├── go.mod
├── main.go
├── makefile
└── service
    ├── allservices.go
    └── allservices_test.go

Routes

GET /healthz
GET /about
GET /v1

How to run

Prerequisite: You should have Go set up on your system.

  • Run test cases with coverage
    make test
    
  • View Coverage
    make view
    
  • Building the binairy
    make package
    
  • Run the project
    make run
    
  • Clean up
    make clean
    

About

Go-Gin Example with router group called `v1` and basic auth


Languages

Language:Go 87.2%Language:Makefile 12.8%