8000 GitHub - skriptvalley/go-init: Production-ready Golang microservice starter kit with logging, metrics, and graceful shutdown.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

skriptvalley/go-init

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-init

🚀 A production-ready Golang microservice starter kit.

📁 Project Structure

  • cmd/ - Entrypoint binaries
  • internal/ - Internal application logic
  • pkg/ - Shared packages (e.g., logger)
  • configs/ - Configuration files
  • deployments/ - Docker, K8s manifests
  • scripts/ - Dev or CI automation
  • vendor/ - Vendored dependencies (if using go mod vendor)

🚀 Quick Start (Local)

make run

🐳 Docker

Build and Run:

docker build -t go-init .
docker run -p 8080:8080 go-init

Or use Docker Compose:

docker-compose up --build

App will be available at http://localhost:8080

Prometheus

Prometheus is included and scrapes metrics from /metrics.

⚙️ Config

Settings are loaded from a .env file.

Example .env

PORT=8080
LOG_LEVEL=debug

🧪 Health

GET /healthz

Returns 200 OK with body ok.

📈 Metrics

GET /metrics

Prometheus-compatible metrics including:

  • http_requests_total
  • http_request_duration_seconds

About

Production-ready Golang microservice starter kit with logging, metrics, and graceful shutdown.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0