Add Julia+Postgres calculation service with shared golden vectors
- service/: Julia HTTP API (HTTP.jl + LibPQ), formulas.jl as source of truth - service/db/001_init.sql: calculation_runs (append-only), provinces, eto_monthly - tests/golden/vectors.json: single fixture set enforced on both JS and Julia - .gitignore: keep secrets (DB env, contracts, financial records, ransomware note) out - AGENTS.md: document service commands and formula-change rule
This commit is contained in:
1 parent
dd232b1c02
commit
dd65e9061f
14 files changed
+1467
No files matched your search
@@ -0,0 +1,19 @@
|
||||
# .env.example — คัดลอกเป็น service/.env แล้วใส่ค่าจริงเอง (ห้าม commit .env)
|
||||
# ห้ามส่งรหัสผ่านผ่านแชท/แชทบอท — ใส่ในไฟล์นี้ในเครื่องคุณเท่านั้น
|
||||
|
||||
# ---- PostgreSQL ----
|
||||
FARM_DB_HOST=localhost
|
||||
FARM_DB_PORT=5432
|
||||
FARM_DB_NAME=farm_planning
|
||||
FARM_DB_USER=postgres
|
||||
FARM_DB_PASSWORD=
|
||||
|
||||
# ---- API ----
|
||||
FARM_API_HOST=127.0.0.1
|
||||
FARM_API_PORT=8000
|
||||
|
||||
# เปิด CORS ให้เว็บ static ที่รันคนละพอร์ต (ตอนพัฒนา)
|
||||
FARM_CORS_ORIGIN=http://localhost:8090
|
||||
|
||||
# ปิดการเขียน DB ชั่วคราวได้ (เช่น ตอน demo ออฟไลน์)
|
||||
FARM_PERSIST_RUNS=true
|
||||
Reference in new issue
Block a user