Skip to content

horiondreher/go-web-api-boilerplate

Repository files navigation

Go Web API Boilerplate

Just writing some golang with things that I like to see in a Web API

Features

  • Hexagonal Architecture (kinda overengineering but ok. Also, just wrote like this to see how it goes)
  • Simple routing with chi
  • Centralized encoding and decoding
  • Centralized error handling
  • Versioned HTTP Handler
  • SQL type safety with SQLC
  • Migrations with golang migrate
  • PASETO tokens instead of JWT
  • Access and Refresh Tokens
  • Tests that uses Testcontainers instead of mocks
  • Testing scripts that uses cURL and jq (f* Postman)

Required dependencies

  • jq
  • golang-migrate
  • docker
  • sqlc

About

Some Web API boilerplate using Go and SQLC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published