Skip to content

duynhlab/user-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

user-service

User management microservice for profiles and account operations.

Features

  • User profile management
  • Account operations
  • User search

API Endpoints

All routes follow Variant A naming — single path for browser and in-cluster callers. See homelab naming convention.

Method Path Audience
GET /user/v1/public/users/:id public
GET /user/v1/private/users/profile private
PUT /user/v1/private/users/profile private
POST /user/v1/internal/users internal (auth-service during registration; in-cluster only)

Tech Stack

  • Go + Gin framework
  • PostgreSQL 16 (supporting-db cluster)
  • PgBouncer connection pooling
  • OpenTelemetry tracing

Development

Prerequisites

Local Development

# Install dependencies
go mod tidy
go mod download

# Build
go build ./...

# Test
go test ./...

# Lint (must pass before PR merge)
golangci-lint run --timeout=10m

# Run locally (requires .env or env vars)
go run cmd/main.go

Pre-push Checklist

go build ./... && go test ./... && golangci-lint run --timeout=10m

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors