Categorygithub.com/ew-kislov/go-sample-microservice
module
0.0.0-20240528232253-5f22486512f9
Repository: https://github.com/ew-kislov/go-sample-microservice.git
Documentation: pkg.go.dev

# README

Go Sample Microservice

Description

This is a sample microservice written in Go considering best practices. It can be used as a template.

Features

  • REST API endpoints
  • JWT authorization
  • SQL database
  • Database migrations
  • Auto generated OpenApi documentation (accessible by URL http://localhost:<PORT>/swagger/index.html)
  • End-to-End logging (with Request ID). Includes HTTP requests logging, database query logging
  • Testing infrastructure (mocks, integration tests)
  • Linter

Prerequisites

How to run app

  1. Create database PostgreSQL
  2. Run migrations: make migrate_up
  3. Install dependencies: go mod download
  4. Run app: make run

# Packages

No description provided by the author
Package docs Code generated by swaggo/swag.
No description provided by the author
No description provided by the author