feat(t229): load ERP credentials from dotenv

This commit is contained in:
QiuSW
2026-07-29 10:25:56 +08:00
parent d75a7d8dc0
commit f0fbdbaddc
12 changed files with 396 additions and 26 deletions
+4 -2
View File
@@ -7,7 +7,9 @@
`go-blueprint create --name backend-api --framework gin --driver sqlite --git skip`
The generator was run once outside this repository. Its current output targets Go 1.25 and
Gin 1.12 and includes demo routes, permissive CORS, implicit `.env` loading, a package-level
Gin 1.12 and includes demo routes, permissive CORS, a generic implicit `.env` loader, a package-level
database singleton, and fatal health-check behavior. Those defaults were not copied. The checked-in
code retains only the minimal command/internal package shape and is independently constrained by
this project's architecture and tests.
this project's architecture and tests. `cmd/api` separately uses a bounded, allowlisted `.env`
fallback for the three ERP configuration values only; it does not provide generic application
configuration loading.