Files
Bkk1234 5fb095b872 feat(storage): move project data to SQLite via node:sqlite
- server/db.mjs: schema (site + projects), transactional replace, WAL, VACUUM INTO backups (keep 10), JSON export, first-run seed from data/projects.json
- publish.mjs: read/write through the database, export mirror JSON for git/static/offline, validate duplicate project_id
- ui/data.js: read live data from /api/projects first, fall back to data/projects.json
- Dockerfile/compose/.env.example: DB_PATH, drop experimental sqlite warning flag
- docs: AGENTS.md + README describe the database layer and traps
2026-11-23 00:24:47 +07:00

16 lines
360 B
Plaintext

# ไฟล์/โฟลเดอร์ที่ไม่ขึ้น Git
node_modules/
.DS_Store
Thumbs.db
*.log
.env
.env.*
!.env.example
# ฐานข้อมูล SQLite (ข้อมูลจริง) + ไฟล์ชั่วคราวของมัน
data/*.sqlite
data/*.sqlite-wal
data/*.sqlite-shm
data/backups/
data/projects.migrated.json