Files
Bkk1234 dd65e9061f 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
2026-11-16 01:59:22 +07:00

20 lines
834 B
Bash

# .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