gin-boilerplate

command module
v0.0.0-...-7d33026 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2022 License: Unlicense Imports: 14 Imported by: 0

README

Gin boilerplate

Personal boiler plate for starting gin project

Folder Structure

.
└── gin-boilerplate/
    ├── .vscode
    ├── database/
    │   ├── database.go
    │   └── migrations/
    │       └── // Migrations file goes here
    ├── dist/
    │   └── // Mainly to hold compiled application
    ├── domains/
    │   └── // Your API usecase goes here
    ├── models/
    │   ├── // All models goes here
    │   └── structs
    ├── routes/
    │   └── routes.go
    ├── utils/
    │   ├── constants/
    │   │   └── // All constants data goes here
    │   └── helpers/
    │       └── // Helper function goes here
    ├── .env.example
    ├── go.mod
    ├── go.sum
    ├── main.go
    ├── Makefile
    └── Readme.md

How to set up

  • Clone the repo
  • Run
go mod tidy
go mod vendor

How to run on local for testing

How to test

  • Run make test
  • Please create another test suite before adding new feature

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
models
utils

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL