Skip to content

Latest commit

 

History

History
34 lines (30 loc) · 632 Bytes

README.md

File metadata and controls

34 lines (30 loc) · 632 Bytes

Go Echo Setup

How To Run Application

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