Migrate data-art to Node.js/TypeScript web app with Docker Compose deployment#8
Draft
Copilot wants to merge 2 commits into
Draft
Migrate data-art to Node.js/TypeScript web app with Docker Compose deployment#8Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
Agent-Logs-Url: https://github.com/duplys/data-art/sessions/98122a02-bbb2-46dd-893b-1fc68fdfe401 Co-authored-by: duplys <483081+duplys@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Migrate application to Node.js and TypeScript with Docker support
Migrate data-art to Node.js/TypeScript web app with Docker Compose deployment
Apr 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The existing Python CLI-only application needs to run as a web service on a Hetzner VPS, deployable via Docker Compose alongside other services.
Changes
web/— Node.js + TypeScript applicationsrc/core.ts— port of the text→pixel→PNG algorithm usingpngjs(no native deps)src/server.ts— Express server exposing three endpoints:POST /api/generate— accepts{ text }JSON, returns PNG bufferGET /— serves the browser UIGET /health— liveness probe for container orchestrationsrc/core.test.ts— 16 Jest unit tests mirroring the Python test suitepublic/index.html— self-contained dark-themed UI: textarea → generate → inline preview + PNG downloadContainer
web/Dockerfile— multi-stage Node 20 Alpine build; non-root user;wget-basedHEALTHCHECKdocker-compose.yml(repo root) — single service definition,restart: unless-stoppedThe original Python CLI and its Dockerfile are kept untouched.