test/package.json
OpenClaw Agent 1ea5ac60cc
All checks were successful
Deploy to dev.bl.pixeldev.eu / deploy (push) Successful in 5s
feat: Postgres CRUD backend for card text field
- 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

13 lines
186 B
JSON

{
"name": "test",
"version": "1.0.0",
"main": "server.js",
"scripts": {
"start": "node server.js"
},
"dependencies": {
"express": "^5.2.1",
"pg": "^8.13.3"
}
}