gqlgen-starter

This is a simple starter kit for anyone wanting to build a GraphQL API using gqlgen.

Getting Started

  1. go mod download
  2. make run

If everything is peachy then you should see log output that looks like

2022/07/17 07:43:56 ******************************************
2022/07/17 07:43:56     Build Commit: dc0b1a11
2022/07/17 07:43:56     Build Time: Sun Jul 17 14:43:55 UTC 2022
2022/07/17 07:43:56     Environment Variables: {
  "ServerPort": "9000"
}
2022/07/17 07:43:56 ******************************************
2022/07/17 07:43:56 connect to http://localhost:9000/ for GraphQL playground

To Dos

  • Add a database connection
  • Use structured logging
  • Example unit tests
  • Containerize this
  • Add a CI pipeline for GitHub Action and GitLab CI

GitHub

View Github