Commit Graph
7 Commits
Author SHA1 Message Date
Bkk1234 af19d04496 build: Dockerfile + docker-compose with ports driven by .env
- web: nginx:alpine serving the static SPA, listens on WEB_CONTAINER_PORT
  rendered from deploy/nginx.conf.template (envsubst), gzip + cache headers,
  /healthz, proxies /api/ to the api container
- api: julia:1.13-bookworm, libpq5 + curl, Pkg.instantiate from the committed
  Manifest, listens on FARM_API_PORT, healthcheck on /api/v1/health
- db: postgres:17-alpine with 001_init.sql mounted for first-run schema,
  pg_isready healthcheck, named volume
- every port comes from .env (container port + host port separated);
  .env.example committed, .env ignored
2026-11-23 01:56:39 +07:00
Bkk1234 05fd682e33 docs: point Q3 at the new Gitea host 2026-11-23 01:32:23 +07:00
Bkk1234 09f0a62a7c docs: rewrite SYSTEM-DESIGN v0.2 for Vue+Julia target architecture
Grounded in the actual repo state (3 overlapping frontend stacks, two
copies of each formula, no API wiring, no schema, no deploy path).
Documents target layout app/ (Vue 3 + Vite) + service/ (HTTP.jl) +
core/ offline fallback, engine-selection rule, API contract, data
contract, PWA strategy, security items and a 6-phase plan.

v0.1 kept in archive/.
2026-11-23 01:29:54 +07:00
Bkk1234 4f74a509d5 intro-irre: แปลงตำราวิศวกรรมชลประทานเบื้องต้นเป็นเว็บเอกสาร 10 บท
- tools/extract.py: PDF 300 หน้า -> extracted/pages.json + crop ภาพ/ตาราง/สมการ 423 รูป
  (ถอด PUA วรรณยุกต์ไทย, รวมสระอำ, แยกหัวข้อที่ระดับ span)
- tools/build.py: generator หน้า docs แบบ static (สารบัญซ้าย/เนื้อหา/ในหน้านี้)
- index.html + chapters/ch01..10.html + css/docs.css + js/docs.js
  (ธีม K2D, ค้นหาเต็มเล่มผ่าน data/search.json, dark mode, drawer มือถือ)
- README.md: วิธี build และข้อจำกัดที่รู้อยู่
2026-11-19 01:34:49 +07:00
Bkk1234 22c28f0708 Stop tracking secrets, junk, and template duplicates; extend .gitignore
- untrack ransomeware note, plaintext-password compose, contracts and farm accounting
- untrack 249 OS/browser artifacts (desktop.ini, *.download, *.url, *.tmp, *.zip)
- untrack unused template copies and saved web pages (---/, start Bootstrap/, freelancer, แรงบันดาลใจ/, home page/)
- .gitignore now documents what must stay tracked (source, data, icons, formula documents)
Files remain in the working tree; only the index changed.
2026-11-16 10:13:51 +07:00
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
Bkk1234 dd232b1c02 modify landing page 2026-11-16 01:39:59 +07:00