/go-api-base-project

Best practices of how to setup a go API with iris and gorm

Primary LanguageGo

GO API Base Project

This repository is my favorite way of kicking of a new API project in go. Read my blog post for all the details.

Run it

  • Install go (v1.13 or later)
  • go build
  • ./my-go-api

Try it

  • curl localhost:8080
  • curl localhost:8080/Jonny
  • curl localhost:8080/orders

Test it

  • go test -v