Skip to content

eugenius1/go-gin-rest

Repository files navigation

Go Gin REST starter

GitHub Actions workflow status badge codebeat badge

A backend starter project for implementing REST APIs in Go and using Gin framework, including:

  • Gin as web framework
  • PostgreSQL as database
  • GORM for ORM (object–relational mapping)
  • ULID (Universally Unique Lexicographically Sortable Identifier) for IDs
  • A devcontainer with dependencies that can be used with VS Code or independently with docker compose

The starter example implements the following endpoints:

GET /v1/albums
POST /v1/albums
PUT /v1/albums
GET /v1/albums/:id
DELETE /v1/albums/:id

TODO:

  • Logging
  • JSON validation
  • OpenAPI/Swagger
  • API request examples in the repo with Bruno
  • Mock generation from interfaces
  • Add unit tests

About

REST Go backend starter using Gin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published