Added dockerfile, docker compose, created server implementation with some middlewares

This commit is contained in:
2026-03-16 14:24:26 +05:00
parent bea7fba050
commit 2885a59693
10 changed files with 451 additions and 2 deletions

8
go.mod
View File

@@ -4,7 +4,10 @@ go 1.25.7
require (
github.com/go-chi/chi/v5 v5.2.5
github.com/go-chi/cors v1.2.2
github.com/golang-cz/devslog v0.0.15
github.com/golang-jwt/jwt/v5 v5.3.1
github.com/google/uuid v1.6.0
github.com/huandu/go-sqlbuilder v1.39.1
github.com/jackc/pgx/v5 v5.8.0
github.com/joho/godotenv v1.5.1
@@ -15,6 +18,8 @@ require (
github.com/oapi-codegen/runtime v1.2.0
github.com/pressly/goose/v3 v3.27.0
github.com/redis/go-redis/v9 v9.18.0
github.com/rs/xid v1.6.0
github.com/samber/slog-chi v1.19.0
)
require (
@@ -22,7 +27,6 @@ require (
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/fsnotify/fsnotify v1.9.0 // indirect
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/huandu/go-clone v1.7.3 // indirect
github.com/huandu/xstrings v1.4.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
@@ -34,6 +38,8 @@ require (
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/sethvargo/go-retry v0.3.0 // indirect
go.opentelemetry.io/otel v1.40.0 // indirect
go.opentelemetry.io/otel/trace v1.40.0 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/sync v0.19.0 // indirect