From 5981d2410448e83f2c66f72631e51e8b194a2b78 Mon Sep 17 00:00:00 2001 From: Omair Saleh Date: Tue, 10 Mar 2026 06:27:11 +0800 Subject: [PATCH] Migrate calvana API into quikcue-site: add Node.js server, update Dockerfile, add migrated HTML pages --- Dockerfile | 12 ++- html/hire/index.html | 43 +++++++++ html/index.html | 8 +- html/live/index.html | 6 +- html/manifesto/index.html | 47 ++++++++++ nginx.conf | 9 ++ package.json | 12 +++ server.js | 188 ++++++++++++++++++++++++++++++++++++++ 8 files changed, 314 insertions(+), 11 deletions(-) create mode 100644 html/hire/index.html create mode 100644 html/manifesto/index.html create mode 100644 package.json create mode 100644 server.js diff --git a/Dockerfile b/Dockerfile index 040c466..18c2ab1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,8 @@ -FROM nginx:alpine -COPY nginx.conf /etc/nginx/conf.d/default.conf -COPY html/ /usr/share/nginx/html/ -EXPOSE 80 +FROM node:22-alpine +WORKDIR /app +COPY package.json . +RUN npm install +COPY server.js . +COPY html/ ./html/ +EXPOSE 3000 +CMD ["node", "server.js"] diff --git a/html/hire/index.html b/html/hire/index.html new file mode 100644 index 0000000..c9c560e --- /dev/null +++ b/html/hire/index.html @@ -0,0 +1,43 @@ + + + + + + QuikCue — Hire + + + + + + + + + + + +
+

If you're reading this,
you already know.

+ +

+ If you want safe hands, hire safe people.
+ If you want velocity with control — let's talk. +

+

PS — Umar pointed me here. If this turns into a hire, I want him to get paid.

+
+ +
+
+ + diff --git a/html/index.html b/html/index.html index 10fa18d..9cce4b4 100644 --- a/html/index.html +++ b/html/index.html @@ -724,7 +724,7 @@ @@ -776,13 +776,13 @@ }; // ── Live Feed ── - const CALVANA_API = 'https://calvana.quikcue.com/api'; + const SHIPS_API = '/api'; async function loadLiveFeed() { try { const [shipsRes, statsRes] = await Promise.all([ - fetch(`${CALVANA_API}/ships/showcase`), - fetch(`${CALVANA_API}/stats`) + fetch(`${SHIPS_API}/ships/showcase`), + fetch(`${SHIPS_API}/stats`) ]); if (shipsRes.ok) renderShips(await shipsRes.json()); if (statsRes.ok) renderStats(await statsRes.json()); diff --git a/html/live/index.html b/html/live/index.html index 3257536..dbcb603 100644 --- a/html/live/index.html +++ b/html/live/index.html @@ -168,12 +168,12 @@