Skip to content
Best practices of how to setup a go API with iris and gorm
Go
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
model Part 2 - Database Integration With Gorm Feb 17, 2019
.gitignore Part 1 - A Webserver With Iris Feb 17, 2019
go.mod update go dependencies Nov 8, 2019
go.sum update go dependencies Nov 8, 2019
main.go update for Iris version 12 (#1) Nov 8, 2019
main_test.go update for Iris version 12 (#1) Nov 8, 2019
readme.md update for Iris version 12 (#1) Nov 8, 2019

readme.md

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
You can’t perform that action at this time.