Skip to content

Go (Golang) API REST Template/Boilerplate with Gin Framework

License

Notifications You must be signed in to change notification settings

antoniopaya22/go-rest-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-rest-template

Go (Golang) API REST Template/Boilerplate with Gin Framework

Go Report Card Open Source Love Build Status

1. Run with Docker

  1. Build
make build
docker build . -t api-rest
  1. Run
docker run -p 3000:3000 api-rest
  1. Test
go test -v ./test/...

2. Generate Docs

# Get swag
go get -u github.com/swaggo/swag/cmd/swag

# Generate docs
swag init --dir cmd/api --parseDependency --output docs

Run and go to http://localhost:3000/docs/index.html

About

Go (Golang) API REST Template/Boilerplate with Gin Framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published