go-gin-setup

command module
v0.0.0-...-c48e8af Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 1 Imported by: 0

README

Go Gin Setup

How To Run
docker-compose up -d --build
go run main.go runserver

or

# support live reload
go install github.com/cosmtrek/air@latest
# then run
air runserver
How to Run Migration
go run main.go migrate -e up

another script:

go run main.go makemigrations -f "create_new_migration_file"
go run main.go migrate -e up 0001
go run main.go migrate -e down
go run main.go migrate -e down 0001
go run main.go migrate -e undo
How to Generate Swagger
swag init --parseDependency --parseInternal

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
dto
cmd
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
pkg

Jump to

Keyboard shortcuts

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