Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 17 additions & 29 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,46 +1,34 @@
# ───────────────────────────────────────────────────────────
# 🌟 APPLICATION CONFIGURATION
# ───────────────────────────────────────────────────────────
DEBUG=false
DISABLE_LOGS=false
LOG_FORMAT=json
LOG_CALLER=true
LOG_STACKTRACE=false

# ───────────────────────────────────────────────────────────
# 🌟 SERVER CONFIGURATION
# ───────────────────────────────────────────────────────────
# Server Configuration
SERVER_ADDR=
SERVER_PORT=8080

# ───────────────────────────────────────────────────────────
# 🌟 DATABASE CONFIGURATION (MySQL)
# ───────────────────────────────────────────────────────────
# Database Configuration (MySQL)
DB_HOST=localhost
DB_PORT=3306
DB_USER=user
DB_PASSWORD=password
DB_NAME=mydatabase

# ───────────────────────────────────────────────────────────
# 🌟 REDIS CACHE CONFIGURATION
# ───────────────────────────────────────────────────────────
# Redis Configuration
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=your_redis_password
REDIS_PASSWORD=redispassword
REDIS_DB=0

# ───────────────────────────────────────────────────────────
# 🌟 JAEGER TRACING CONFIGURATION
# ───────────────────────────────────────────────────────────
# Jaeger Configuration (Tracing)
JAEGER_AGENT_HOST=localhost
JAEGER_AGENT_PORT=6831

# ───────────────────────────────────────────────────────────
# 🌟 TOOL VERSIONS (for development)
# ───────────────────────────────────────────────────────────
SWAG_VERSION=latest
# Logging Configuration
DEBUG=false
DISABLE_LOGS=false
LOG_FORMAT=json
LOG_CALLER=true
LOG_STACKTRACE=false

# Tool Versions (used in Docker builds)
SWAG_VERSION=v1.16.4
MIGRATE_VERSION=v4.16.2
LINT_VERSION=v1.55.2
IMPORTS_VERSION=v0.14.0
VULN_VERSION=v1.0.1
LINT_VERSION=v1.59.1
IMPORTS_VERSION=v0.24.0
VULN_VERSION=v1.1.3
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Load environment variables
include .env
# Load environment variables (optional, won't fail if .env doesn't exist)
-include .env

# Get repository name from current directory
REPO_NAME ?= $(shell basename "$$(pwd)")
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/MitulShah1/golang-rest-api-template

go 1.23.0
go 1.24.7

require (
github.com/DATA-DOG/go-sqlmock v1.5.2
Expand Down
Loading