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