Commit Graph

2 Commits

Author SHA1 Message Date
OpenClaw Agent
1d082d9016 fix: split initDb into two queries (pg no multi-command prepared stmts)
All checks were successful
Deploy to dev.bl.pixeldev.eu / deploy (push) Successful in 2s
2026-03-13 15:13:32 +00:00
OpenClaw Agent
1ea5ac60cc feat: Postgres CRUD backend for card text field
All checks were successful
Deploy to dev.bl.pixeldev.eu / deploy (push) Successful in 5s
- schema.sql: card_text table (single-row, id=1) with content + updated_at
- server.js: Express + pg server with CRUD API:
    GET    /api/text  — read current text
    PUT    /api/text  — create / update text
    DELETE /api/text  — reset to default lorem ipsum
- package.json: express + pg dependencies (converts project to Node type)
- index.html: card now loads text from DB, inline Edit / Save / Cancel
  controls, Reset button with confirm dialog, last-updated timestamp

DB: testapp (appuser) on localhost:5432

Closes #8
2026-03-13 15:12:51 +00:00