Strip comments from backend and frontend source

Remove Go doc comments, TS/Svelte scaffold comments and explanatory
notes left over from the initial scaffold, plus a few leftover Spanish
notes in the compose file, SQL scripts and env template. Also drops
frontend/src/lib/index.ts, which only held the SvelteKit placeholder
comment and was never imported.
This commit is contained in:
2026-09-21 19:45:42 +02:00
parent a455302b80
commit 570c4acdaa
12 changed files with 2 additions and 53 deletions
-7
View File
@@ -1,4 +1,3 @@
// Package config carga la configuración del backend desde variables de entorno.
package config
import (
@@ -7,14 +6,10 @@ import (
"github.com/caarlos0/env/v11"
)
// Config agrupa toda la configuración del servidor. Los campos de Zitadel/S3
// ya están definidos aunque todavía no se usen: se conectan en las siguientes
// fases sin tener que tocar esta struct de nuevo.
type Config struct {
Env string `env:"APP_ENV" envDefault:"development"`
Port int `env:"PORT" envDefault:"8080"`
// Orígenes permitidos para CORS en desarrollo (el frontend en Vite corre en otro puerto).
CORSAllowedOrigins []string `env:"CORS_ALLOWED_ORIGINS" envSeparator:"," envDefault:"http://localhost:5173"`
DatabaseURL string `env:"DATABASE_URL" envDefault:"postgres://dockermanager:dockermanager@localhost:5432/dockermanager?sslmode=disable"`
@@ -29,11 +24,9 @@ type Config struct {
S3AccessKey string `env:"S3_ACCESS_KEY"`
S3SecretKey string `env:"S3_SECRET_KEY"`
// DockerHost vacío = usar el socket por defecto del sistema (DOCKER_HOST estándar del SDK).
DockerHost string `env:"DOCKER_HOST"`
}
// Load lee la configuración desde el entorno del proceso.
func Load() (Config, error) {
cfg := Config{}
if err := env.Parse(&cfg); err != nil {