Deploy ProFlo shop, admin, cashier + API (Docker Space)
Browse filesFiles changed (39)
- README.md+6-6
- apps/admin-web/.env.example+1-1
- apps/admin-web/app/admin/dashboard/page.tsx+1-1
- apps/admin-web/app/admin/page.tsx+1-1
- apps/admin-web/app/globals.css+1-1
- apps/admin-web/app/layout.tsx+2-2
- apps/admin-web/app/page.tsx+1-1
- apps/admin-web/lib/apparel.ts+1-1
- apps/admin-web/lib/receipt.ts+3-3
- apps/admin-web/next-env.d.ts+1-1
- apps/cashier-web/app/gate/page.tsx+1-1
- apps/cashier-web/app/layout.tsx+2-2
- apps/cashier-web/app/page.tsx+2-2
- apps/cashier-web/next-env.d.ts+1-1
- apps/customer-web/.env.example+2-2
- apps/customer-web/app/globals.css+1-1
- apps/customer-web/app/layout.tsx+1-1
- apps/customer-web/app/page.tsx+2-2
- apps/customer-web/app/shop/components/ShopShell.tsx+4-4
- apps/customer-web/app/shop/context/ShopContext.tsx+3-3
- apps/customer-web/app/shop/lib/apparel.ts+1-1
- apps/customer-web/app/shop/lib/receiptDownload.ts+3-3
- apps/customer-web/app/shop/page.tsx+3-3
- apps/customer-web/lib/cartBackup.ts+1-1
- apps/customer-web/lib/offlineCartQueue.ts+1-1
- apps/customer-web/next-env.d.ts+1-1
- deploy/huggingface-admin/Dockerfile+1-1
- deploy/huggingface-admin/README.md+3-3
- deploy/huggingface-admin/push.ps1+6-6
- deploy/huggingface-cashier/Dockerfile+1-1
- deploy/huggingface-cashier/README.md+3-3
- deploy/huggingface-cashier/push.ps1+6-6
- deploy/huggingface/README.md+6-6
- deploy/huggingface/push.ps1+5-5
- package.json+1-1
- packages/shared/src/apparel.ts+1-1
- render.yaml+1-1
- services/api/.env.example+2-2
- services/api/src/index.ts+3-3
123453 unmodified lines910111213141516171819202122234 unmodified lines28293031323334---title: SeamLineemoji: 🛒colorFrom: greencolorTo: blue3 unmodified linespinned: false---# SeamLine — Full checkout platformAll apps run in one Docker Space behind nginx on port **7860**.| App | URL ||-----|-----|| Customer shop | [/shop](https://adi576-seamline.hf.space/shop) || Admin HQ | [/admin](https://adi576-seamline.hf.space/admin) || Cashier terminal | [/cashier](https://adi576-seamline.hf.space/cashier) || API (proxied) | `/checkout-api` |## Required secrets4 unmodified lines| `JWT_SECRET` | Long random string || `ADMIN_USERNAME` / `ADMIN_PASSWORD` | Staff login || `MANAGER_USERNAME` / `MANAGER_PASSWORD` | Manager login || `PUBLIC_API_URL` | `https://adi576-seamline.hf.space/checkout-api` |Optional: `DEFAULT_STORE_CODE`, `CASHIER_API_KEY` (+ same value as `NEXT_PUBLIC_CASHIER_API_KEY` at build if you protect cashier routes).123453 unmodified lines910111213141516171819202122234 unmodified lines28293031323334---title: ProFloemoji: 🛒colorFrom: greencolorTo: blue3 unmodified linespinned: false---# ProFlo — Full checkout platformAll apps run in one Docker Space behind nginx on port **7860**.| App | URL ||-----|-----|| Customer shop | [/shop](https://adi576-proflo.hf.space/shop) || Admin HQ | [/admin](https://adi576-proflo.hf.space/admin) || Cashier terminal | [/cashier](https://adi576-proflo.hf.space/cashier) || API (proxied) | `/checkout-api` |## Required secrets4 unmodified lines| `JWT_SECRET` | Long random string || `ADMIN_USERNAME` / `ADMIN_PASSWORD` | Staff login || `MANAGER_USERNAME` / `MANAGER_PASSWORD` | Manager login || `PUBLIC_API_URL` | `https://adi576-proflo.hf.space/checkout-api` |Optional: `DEFAULT_STORE_CODE`, `CASHIER_API_KEY` (+ same value as `NEXT_PUBLIC_CASHIER_API_KEY` at build if you protect cashier routes).
1234NEXT_PUBLIC_API_BASE_URL=http://localhost:4000# Vercel: API_PROXY_TARGET=https://seamline.onrender.com# Vercel: NEXT_PUBLIC_API_BASE_URL=/checkout-api1234NEXT_PUBLIC_API_BASE_URL=http://localhost:4000# Vercel: API_PROXY_TARGET=https://proflo.onrender.com# Vercel: NEXT_PUBLIC_API_BASE_URL=/checkout-api
1240 unmodified lines12411242124312441245124612471240 unmodified lines<label className="field"><span>Brand</span><input value={brand} onChange={(e) => setBrand(e.target.value)} placeholder="e.g. SeamLine Basics" /></label><label className={`field${formErrors.category ? " field--invalid" : ""}`}>1240 unmodified lines12411242124312441245124612471240 unmodified lines<label className="field"><span>Brand</span><input value={brand} onChange={(e) => setBrand(e.target.value)} placeholder="e.g. ProFlo Basics" /></label><label className={`field${formErrors.category ? " field--invalid" : ""}`}>
48 unmodified lines4950515253545548 unmodified linesreturn (<main className="loginPage"><div className="loginCard"><h1 className="loginTitle">SeamLine HQ</h1><p className="loginHint">Sign in to the operations console</p><form onSubmit={(e) => void onSubmit(e)} className="loginForm">48 unmodified lines4950515253545548 unmodified linesreturn (<main className="loginPage"><div className="loginCard"><h1 className="loginTitle">ProFlo HQ</h1><p className="loginHint">Sign in to the operations console</p><form onSubmit={(e) => void onSubmit(e)} className="loginForm">
1525 unmodified lines15261527152815291530153115321525 unmodified lines}/* ==========================================================================SeamLine Operations Sidebar & Mobile Responsive Layout Redesign========================================================================== *//* Layout structure */1525 unmodified lines15261527152815291530153115321525 unmodified lines}/* ==========================================================================ProFlo Operations Sidebar & Mobile Responsive Layout Redesign========================================================================== *//* Layout structure */
2 unmodified lines3456789102 unmodified linesimport "./globals.css";export const metadata: Metadata = {title: "SeamLine HQ",description: "SeamLine operations console"};export default function RootLayout({ children }: { children: ReactNode }) {2 unmodified lines3456789102 unmodified linesimport "./globals.css";export const metadata: Metadata = {title: "ProFlo HQ",description: "ProFlo operations console"};export default function RootLayout({ children }: { children: ReactNode }) {
2 unmodified lines34567892 unmodified linesexport default function Home() {return (<main className="adminHome"><h1 className="adminHome__title">SeamLine HQ</h1><p className="adminHome__text">Operations console for catalogue, counter tokens, receipts, and store KPIs.</p><Link href="/admin" className="adminHome__link">Open admin sign-in2 unmodified lines34567892 unmodified linesexport default function Home() {return (<main className="adminHome"><h1 className="adminHome__title">ProFlo HQ</h1><p className="adminHome__text">Operations console for catalogue, counter tokens, receipts, and store KPIs.</p><Link href="/admin" className="adminHome__link">Open admin sign-in
55 unmodified lines5657585955 unmodified linesexport const APPAREL_SEASONS = ["", "SS26", "AW26", "Core", "Clearance"] as const;export const BRAND_NAME = "SeamLine";55 unmodified lines5657585955 unmodified linesexport const APPAREL_SEASONS = ["", "SS26", "AW26", "Core", "Clearance"] as const;export const BRAND_NAME = "ProFlo";
40 unmodified lines414243444546474 unmodified lines5253545556575812 unmodified lines7172737475767740 unmodified lines"<!DOCTYPE html>",'<html lang="en">','<head><meta charset="utf-8"/>',`<title>SeamLine receipt ${escapeHtml(receipt.receiptNumber)}</title>`,"<style>","body{font-family:system-ui,sans-serif;max-width:420px;margin:24px auto;color:#0f172a}","h1{font-size:1.25rem;margin:0 0 4px}",4 unmodified lines".totals div{display:flex;justify-content:space-between;padding:4px 0}",".grand{font-weight:700;font-size:1.1rem;border-top:2px solid #0f172a;padding-top:8px;margin-top:8px}","</style></head><body>","<h1>SeamLine</h1>",`<p class="meta">Receipt ${escapeHtml(receipt.receiptNumber)} · ${escapeHtml(receipt.storeCode)}<br>${when}</p>`,`<table><tbody>${rows}</tbody></table>`,'<div class="totals">',12 unmodified linesconst url = URL.createObjectURL(blob);const a = document.createElement("a");a.href = url;a.download = `seamline-receipt-${receipt.receiptNumber.replace(/[^a-zA-Z0-9_-]/g, "")}.html`;a.click();URL.revokeObjectURL(url);}40 unmodified lines414243444546474 unmodified lines5253545556575812 unmodified lines7172737475767740 unmodified lines"<!DOCTYPE html>",'<html lang="en">','<head><meta charset="utf-8"/>',`<title>ProFlo receipt ${escapeHtml(receipt.receiptNumber)}</title>`,"<style>","body{font-family:system-ui,sans-serif;max-width:420px;margin:24px auto;color:#0f172a}","h1{font-size:1.25rem;margin:0 0 4px}",4 unmodified lines".totals div{display:flex;justify-content:space-between;padding:4px 0}",".grand{font-weight:700;font-size:1.1rem;border-top:2px solid #0f172a;padding-top:8px;margin-top:8px}","</style></head><body>","<h1>ProFlo</h1>",`<p class="meta">Receipt ${escapeHtml(receipt.receiptNumber)} · ${escapeHtml(receipt.storeCode)}<br>${when}</p>`,`<table><tbody>${rows}</tbody></table>`,'<div class="totals">',12 unmodified linesconst url = URL.createObjectURL(blob);const a = document.createElement("a");a.href = url;a.download = `proflo-receipt-${receipt.receiptNumber.replace(/[^a-zA-Z0-9_-]/g, "")}.html`;a.click();URL.revokeObjectURL(url);}
123456/// <reference types="next" />/// <reference types="next/image-types/global" />import "./.next/dev/types/routes.d.ts";// NOTE: This file should not be edited// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.123456/// <reference types="next" />/// <reference types="next/image-types/global" />import "./.next/types/routes.d.ts";// NOTE: This file should not be edited// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
48 unmodified lines4950515253545548 unmodified linesreturn (<div className="shell"><header className="header"><p className="header__eyebrow">SeamLine</p><h1 className="header__title">Exit gate</h1><p className="header__sub">Scan the customer's exit QR after they have paid. Each code works once.</p><Link href="/" className="gateBack">48 unmodified lines4950515253545548 unmodified linesreturn (<div className="shell"><header className="header"><p className="header__eyebrow">ProFlo</p><h1 className="header__title">Exit gate</h1><p className="header__sub">Scan the customer's exit QR after they have paid. Each code works once.</p><Link href="/" className="gateBack">
2 unmodified lines3456789102 unmodified linesimport "./globals.css";export const metadata: Metadata = {title: "SeamLine Counter",description: "SeamLine cashier terminal"};export default function RootLayout({ children }: { children: ReactNode }) {2 unmodified lines3456789102 unmodified linesimport "./globals.css";export const metadata: Metadata = {title: "ProFlo Counter",description: "ProFlo cashier terminal"};export default function RootLayout({ children }: { children: ReactNode }) {
2 unmodified lines3456789183 unmodified lines1931941951961971981992 unmodified linesimport { useCallback, useEffect, useState } from "react";import Link from "next/link";import { apiBase, cashierHeaders } from "../lib/api";const RECENT_KEY = "seamline-cashier-recent";const MAX_RECENT = 8;type OrderLine = {183 unmodified linesreturn (<div className="shell"><header className="header"><p className="header__eyebrow">SeamLine</p><h1 className="header__title">Counter</h1><p className="header__sub">Look up queue tokens or order IDs, verify the basket, then settle cash or card at the till.2 unmodified lines3456789183 unmodified lines1931941951961971981992 unmodified linesimport { useCallback, useEffect, useState } from "react";import Link from "next/link";import { apiBase, cashierHeaders } from "../lib/api";const RECENT_KEY = "proflo-cashier-recent";const MAX_RECENT = 8;type OrderLine = {183 unmodified linesreturn (<div className="shell"><header className="header"><p className="header__eyebrow">ProFlo</p><h1 className="header__title">Counter</h1><p className="header__sub">Look up queue tokens or order IDs, verify the basket, then settle cash or card at the till.
123456/// <reference types="next" />/// <reference types="next/image-types/global" />import "./.next/dev/types/routes.d.ts";// NOTE: This file should not be edited// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.123456/// <reference types="next" />/// <reference types="next/image-types/global" />import "./.next/types/routes.d.ts";// NOTE: This file should not be edited// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
1 unmodified line234567891 unmodified line# --- Vercel production (avoids Brave/ad-block on onrender.com) ---# Set on Vercel (customer-web project):# API_PROXY_TARGET=https://seamline.onrender.com# NEXT_PUBLIC_API_BASE_URL=/checkout-api# On Render API, set PUBLIC_API_URL to:# https://seamline-customer-web.vercel.app/checkout-api# (so product image URLs load on the same origin)1 unmodified line234567891 unmodified line# --- Vercel production (avoids Brave/ad-block on onrender.com) ---# Set on Vercel (customer-web project):# API_PROXY_TARGET=https://proflo.onrender.com# NEXT_PUBLIC_API_BASE_URL=/checkout-api# On Render API, set PUBLIC_API_URL to:# https://proflo-customer-web.vercel.app/checkout-api# (so product image URLs load on the same origin)
2398 unmodified lines23992400240124022403240424052398 unmodified lines}/* ==========================================================================SeamLine Luxury Boutique Styling & Variant Selection Styles========================================================================== *//* Modern layout and font adjustments */2398 unmodified lines23992400240124022403240424052398 unmodified lines}/* ==========================================================================ProFlo Luxury Boutique Styling & Variant Selection Styles========================================================================== *//* Modern layout and font adjustments */
2 unmodified lines34567892 unmodified linesimport "./globals.css";export const metadata: Metadata = {title: "SeamLine",description: "Fashion & merchandising at the speed of scan."};2 unmodified lines34567892 unmodified linesimport "./globals.css";export const metadata: Metadata = {title: "ProFlo",description: "Fashion & merchandising at the speed of scan."};
2 unmodified lines345678910112 unmodified linesexport default function Home() {return (<main className="landing"><p className="landing__eyebrow">SeamLine</p><h1 className="landing__title"><span className="brandZipp">Seam in.</span> <span className="brandMart">Style out.</span></h1><p className="landing__text">Scan the store QR, grab what you need, and bounce — your bag stays synced while you shop.</p><Link href="/shop" className="btnPrimary btnPrimary--full landing__cta">2 unmodified lines345678910112 unmodified linesexport default function Home() {return (<main className="landing"><p className="landing__eyebrow">ProFlo</p><h1 className="landing__title"><span className="brandZipp">Scan in.</span> <span className="brandMart">Style out.</span></h1><p className="landing__text">Scan the store QR, grab what you need, and bounce — your bag stays synced while you shop.</p><Link href="/shop" className="btnPrimary btnPrimary--full landing__cta">
40 unmodified lines41424344454647484958 unmodified lines10810911011111211311440 unmodified lines<div className="siteHeader__inner">{isHome ? (<><Link href="/shop" className="siteHeader__brand" aria-label="SeamLine home"><span className="brandZipp">Seam</span><span className="brandMart">Line</span></Link><nav className="siteHeader__nav" aria-label="Shop sections"><Link href="/shop/scan" className="siteHeader__pill">58 unmodified lines</span><span className="siteFooter__muted">Bag syncs while this visit is active</span></div><p className="siteFooter__legal">© {new Date().getFullYear()} SeamLine · Fashion at the speed of scan</p></div></footer>40 unmodified lines41424344454647484958 unmodified lines10810911011111211311440 unmodified lines<div className="siteHeader__inner">{isHome ? (<><Link href="/shop" className="siteHeader__brand" aria-label="ProFlo home"><span className="brandZipp">Pro</span><span className="brandMart">Flo</span></Link><nav className="siteHeader__nav" aria-label="Shop sections"><Link href="/shop/scan" className="siteHeader__pill">58 unmodified lines</span><span className="siteFooter__muted">Bag syncs while this visit is active</span></div><p className="siteFooter__legal">© {new Date().getFullYear()} ProFlo · Fashion at the speed of scan</p></div></footer>
20 unmodified lines21222324252627143 unmodified lines171172173174175176177310 unmodified lines48848949049149249349420 unmodified linesimport { apiBase, type RecommendationProduct } from "../lib/shopConfig";export { apiBase, type RecommendationProduct } from "../lib/shopConfig";const SESSION_STORAGE_KEY = "seamline-shop-session-id";export type CartLine = {productId?: string;143 unmodified linestry {const fromStorage =typeof window !== "undefined"? localStorage.getItem("seamline-visit-phone")?.trim() ??localStorage.getItem("zippmart-visit-phone")?.trim() ??localStorage.getItem("supermart-visit-phone")?.trim() ??""310 unmodified linessetMessage(typeof data.message === "string" ? data.message : "No visit found");return false;}localStorage.setItem("seamline-visit-phone", t);setSessionId(data.sessionId);localStorage.setItem(SESSION_STORAGE_KEY, data.sessionId);setSessionBootstrapDone(true);20 unmodified lines21222324252627143 unmodified lines171172173174175176177310 unmodified lines48848949049149249349420 unmodified linesimport { apiBase, type RecommendationProduct } from "../lib/shopConfig";export { apiBase, type RecommendationProduct } from "../lib/shopConfig";const SESSION_STORAGE_KEY = "proflo-shop-session-id";export type CartLine = {productId?: string;143 unmodified linestry {const fromStorage =typeof window !== "undefined"? localStorage.getItem("proflo-visit-phone")?.trim() ??localStorage.getItem("zippmart-visit-phone")?.trim() ??localStorage.getItem("supermart-visit-phone")?.trim() ??""310 unmodified linessetMessage(typeof data.message === "string" ? data.message : "No visit found");return false;}localStorage.setItem("proflo-visit-phone", t);setSessionId(data.sessionId);localStorage.setItem(SESSION_STORAGE_KEY, data.sessionId);setSessionBootstrapDone(true);
1export const BRAND_NAME = "SeamLine";1export const BRAND_NAME = "ProFlo";
32 unmodified lines333435363738394 unmodified lines4445464748495022 unmodified lines7374757677787932 unmodified lines"<!DOCTYPE html>",'<html lang="en">','<head><meta charset="utf-8"/>',`<title>SeamLine receipt ${escapeHtml(receipt.receiptNumber)}</title>`,"<style>","body{font-family:system-ui,sans-serif;max-width:420px;margin:24px auto;color:#0f172a}","h1{font-size:1.25rem;margin:0 0 4px}",4 unmodified lines".totals div{display:flex;justify-content:space-between;padding:4px 0}",".grand{font-weight:700;font-size:1.1rem;border-top:2px solid #0f172a;padding-top:8px;margin-top:8px}","</style></head><body>","<h1>SeamLine</h1>",`<p class="meta">Receipt ${escapeHtml(receipt.receiptNumber)} · ${escapeHtml(receipt.storeCode)}<br>${when}</p>`,`<table><tbody>${rows}</tbody></table>`,'<div class="totals">',22 unmodified linesconst url = URL.createObjectURL(blob);const a = document.createElement("a");a.href = url;a.download = `seamline-receipt-${receipt.receiptNumber.replace(/[^a-zA-Z0-9_-]/g, "")}.html`;a.click();URL.revokeObjectURL(url);}32 unmodified lines333435363738394 unmodified lines4445464748495022 unmodified lines7374757677787932 unmodified lines"<!DOCTYPE html>",'<html lang="en">','<head><meta charset="utf-8"/>',`<title>ProFlo receipt ${escapeHtml(receipt.receiptNumber)}</title>`,"<style>","body{font-family:system-ui,sans-serif;max-width:420px;margin:24px auto;color:#0f172a}","h1{font-size:1.25rem;margin:0 0 4px}",4 unmodified lines".totals div{display:flex;justify-content:space-between;padding:4px 0}",".grand{font-weight:700;font-size:1.1rem;border-top:2px solid #0f172a;padding-top:8px;margin-top:8px}","</style></head><body>","<h1>ProFlo</h1>",`<p class="meta">Receipt ${escapeHtml(receipt.receiptNumber)} · ${escapeHtml(receipt.storeCode)}<br>${when}</p>`,`<table><tbody>${rows}</tbody></table>`,'<div class="totals">',22 unmodified linesconst url = URL.createObjectURL(blob);const a = document.createElement("a");a.href = url;a.download = `proflo-receipt-${receipt.receiptNumber.replace(/[^a-zA-Z0-9_-]/g, "")}.html`;a.click();URL.revokeObjectURL(url);}
38 unmodified lines3940414243444566 unmodified lines11211311411511611711898 unmodified lines21721821922022122222338 unmodified linesuseEffect(() => {if (typeof window === "undefined") return;setVisitPhone(localStorage.getItem("seamline-visit-phone") ?? localStorage.getItem("zippmart-visit-phone") ?? localStorage.getItem("supermart-visit-phone") ?? "");}, []);const loadCatalog = useCallback(async () => {66 unmodified lines? new URLSearchParams(window.location.search).get("store")?.trim()?.toUpperCase(): undefined;if (visitPhone.trim().length >= 10) {localStorage.setItem("seamline-visit-phone", visitPhone.trim());}await createSession(store ?? "BLR001", visitPhone.trim().length >= 10 ? visitPhone.trim() : undefined);}98 unmodified linesonChange={(e) => setVisitPhone(e.target.value)}onBlur={() => {if (visitPhone.trim().length >= 10) {localStorage.setItem("seamline-visit-phone", visitPhone.trim());}}}/>38 unmodified lines3940414243444566 unmodified lines11211311411511611711898 unmodified lines21721821922022122222338 unmodified linesuseEffect(() => {if (typeof window === "undefined") return;setVisitPhone(localStorage.getItem("proflo-visit-phone") ?? localStorage.getItem("zippmart-visit-phone") ?? localStorage.getItem("supermart-visit-phone") ?? "");}, []);const loadCatalog = useCallback(async () => {66 unmodified lines? new URLSearchParams(window.location.search).get("store")?.trim()?.toUpperCase(): undefined;if (visitPhone.trim().length >= 10) {localStorage.setItem("proflo-visit-phone", visitPhone.trim());}await createSession(store ?? "BLR001", visitPhone.trim().length >= 10 ? visitPhone.trim() : undefined);}98 unmodified linesonChange={(e) => setVisitPhone(e.target.value)}onBlur={() => {if (visitPhone.trim().length >= 10) {localStorage.setItem("proflo-visit-phone", visitPhone.trim());}}}/>
1234const KEY = "seamline-cart-backup-v1";export type CartBackup = {savedAt: string;1234const KEY = "proflo-cart-backup-v1";export type CartBackup = {savedAt: string;
1234const QUEUE_KEY = "seamline-offline-cart-queue";const MAX = 25;export type QueuedCartAdd = { barcode: string; qty: number; enqueuedAt: string };1234const QUEUE_KEY = "proflo-offline-cart-queue";const MAX = 25;export type QueuedCartAdd = { barcode: string; qty: number; enqueuedAt: string };
123456/// <reference types="next" />/// <reference types="next/image-types/global" />import "./.next/dev/types/routes.d.ts";// NOTE: This file should not be edited// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.123456/// <reference types="next" />/// <reference types="next/image-types/global" />import "./.next/types/routes.d.ts";// NOTE: This file should not be edited// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
8 unmodified lines91011121314158 unmodified linesCOPY apps/admin-web ./apps/admin-webENV NEXT_PUBLIC_API_BASE_URL=https://adi576-seamline.hf.space/checkout-apiRUN npm run build -w admin-web \&& test -f apps/admin-web/.next/BUILD_ID \&& test -d apps/admin-web/.next/standalone8 unmodified lines91011121314158 unmodified linesCOPY apps/admin-web ./apps/admin-webENV NEXT_PUBLIC_API_BASE_URL=https://adi576-proflo.hf.space/checkout-apiRUN npm run build -w admin-web \&& test -f apps/admin-web/.next/BUILD_ID \&& test -d apps/admin-web/.next/standalone
123452 unmodified lines891011121314151617181920---title: SeamLine Adminemoji: 📊colorFrom: purplecolorTo: red2 unmodified linespinned: false---# SeamLine Admin HQStaff and manager dashboard for catalogue, stock, orders, and store KPIs.Open **/admin** to sign in.Uses the API on the main SeamLine Space: `https://adi576-seamline.hf.space/checkout-api`## Default logins123452 unmodified lines891011121314151617181920---title: ProFlo Adminemoji: 📊colorFrom: purplecolorTo: red2 unmodified linespinned: false---# ProFlo Admin HQStaff and manager dashboard for catalogue, stock, orders, and store KPIs.Open **/admin** to sign in.Uses the API on the main ProFlo Space: `https://adi576-proflo.hf.space/checkout-api`## Default logins
1234567891011121314151627 unmodified lines444546474849505152# Push admin app to Hugging Face Space ADI576/zippmart_admin$ErrorActionPreference = "Stop"$Root = Resolve-Path (Join-Path $PSScriptRoot "..\..")$SpaceDir = Join-Path $env:TEMP "seamline-hf-admin"$SpaceUrl = "https://huggingface.co/spaces/ADI576/zippmart_admin"$SkipNames = @(".git", "node_modules", ".next", "dist")$Token = $env:HF_TOKENif (-not $Token) { $Token = $env:HUGGING_FACE_HUB_TOKEN }if ($Token) {$SpaceUrl = "https://user:$Token@huggingface.co/spaces/ADI576/zippmart_admin"}if (Test-Path $SpaceDir) { Remove-Item -Recurse -Force $SpaceDir }27 unmodified linesPush-Location $SpaceDirgit add -Aif (-not (git diff --cached --quiet)) {git commit -m "Deploy SeamLine admin dashboard (Docker Space)"}git pushPop-LocationWrite-Host "Pushed. Open https://huggingface.co/spaces/ADI576/zippmart_admin"1234567891011121314151627 unmodified lines444546474849505152# Push admin app to Hugging Face Space ADI576/proflo_admin$ErrorActionPreference = "Stop"$Root = Resolve-Path (Join-Path $PSScriptRoot "..\..")$SpaceDir = Join-Path $env:TEMP "proflo-hf-admin"$SpaceUrl = "https://huggingface.co/spaces/ADI576/proflo_admin"$SkipNames = @(".git", "node_modules", ".next", "dist")$Token = $env:HF_TOKENif (-not $Token) { $Token = $env:HUGGING_FACE_HUB_TOKEN }if ($Token) {$SpaceUrl = "https://user:$Token@huggingface.co/spaces/ADI576/proflo_admin"}if (Test-Path $SpaceDir) { Remove-Item -Recurse -Force $SpaceDir }27 unmodified linesPush-Location $SpaceDirgit add -Aif (-not (git diff --cached --quiet)) {git commit -m "Deploy ProFlo admin dashboard (Docker Space)"}git pushPop-LocationWrite-Host "Pushed. Open https://huggingface.co/spaces/ADI576/proflo_admin"
8 unmodified lines91011121314158 unmodified linesCOPY apps/cashier-web ./apps/cashier-webENV NEXT_PUBLIC_API_BASE_URL=https://adi576-seamline.hf.space/checkout-apiRUN npm run build -w cashier-web \&& test -f apps/cashier-web/.next/BUILD_ID \&& test -d apps/cashier-web/.next/standalone8 unmodified lines91011121314158 unmodified linesCOPY apps/cashier-web ./apps/cashier-webENV NEXT_PUBLIC_API_BASE_URL=https://adi576-proflo.hf.space/checkout-apiRUN npm run build -w cashier-web \&& test -f apps/cashier-web/.next/BUILD_ID \&& test -d apps/cashier-web/.next/standalone
123452 unmodified lines89101112131415161718---title: SeamLine Cashieremoji: 🧾colorFrom: bluecolorTo: green2 unmodified linespinned: false---# SeamLine Cashier TerminalIn-store cashier terminal for order lookup and counter settlement.Uses the API on the main SeamLine Space: `https://adi576-seamline.hf.space/checkout-api`## Optional secrets123452 unmodified lines89101112131415161718---title: ProFlo Cashieremoji: 🧾colorFrom: bluecolorTo: green2 unmodified linespinned: false---# ProFlo Cashier TerminalIn-store cashier terminal for order lookup and counter settlement.Uses the API on the main ProFlo Space: `https://adi576-proflo.hf.space/checkout-api`## Optional secrets
1234567891011121314151627 unmodified lines444546474849505152# Push cashier app to Hugging Face Space ADI576/Zippmart_Cashier$ErrorActionPreference = "Stop"$Root = Resolve-Path (Join-Path $PSScriptRoot "..\..")$SpaceDir = Join-Path $env:TEMP "seamline-hf-cashier"$SpaceUrl = "https://huggingface.co/spaces/ADI576/Zippmart_Cashier"$SkipNames = @(".git", "node_modules", ".next", "dist")$Token = $env:HF_TOKENif (-not $Token) { $Token = $env:HUGGING_FACE_HUB_TOKEN }if ($Token) {$SpaceUrl = "https://user:$Token@huggingface.co/spaces/ADI576/Zippmart_Cashier"}if (Test-Path $SpaceDir) { Remove-Item -Recurse -Force $SpaceDir }27 unmodified linesPush-Location $SpaceDirgit add -Aif (-not (git diff --cached --quiet)) {git commit -m "Deploy SeamLine cashier terminal (Docker Space)"}git pushPop-LocationWrite-Host "Pushed. Open https://huggingface.co/spaces/ADI576/Zippmart_Cashier"1234567891011121314151627 unmodified lines444546474849505152# Push cashier app to Hugging Face Space ADI576/proflo_cashier$ErrorActionPreference = "Stop"$Root = Resolve-Path (Join-Path $PSScriptRoot "..\..")$SpaceDir = Join-Path $env:TEMP "proflo-hf-cashier"$SpaceUrl = "https://huggingface.co/spaces/ADI576/proflo_cashier"$SkipNames = @(".git", "node_modules", ".next", "dist")$Token = $env:HF_TOKENif (-not $Token) { $Token = $env:HUGGING_FACE_HUB_TOKEN }if ($Token) {$SpaceUrl = "https://user:$Token@huggingface.co/spaces/ADI576/proflo_cashier"}if (Test-Path $SpaceDir) { Remove-Item -Recurse -Force $SpaceDir }27 unmodified linesPush-Location $SpaceDirgit add -Aif (-not (git diff --cached --quiet)) {git commit -m "Deploy ProFlo cashier terminal (Docker Space)"}git pushPop-LocationWrite-Host "Pushed. Open https://huggingface.co/spaces/ADI576/proflo_cashier"
123453 unmodified lines910111213141516171819202122234 unmodified lines28293031323334---title: SeamLineemoji: 🛒colorFrom: greencolorTo: blue3 unmodified linespinned: false---# SeamLine — Full checkout platformAll apps run in one Docker Space behind nginx on port **7860**.| App | URL ||-----|-----|| Customer shop | [/shop](https://adi576-seamline.hf.space/shop) || Admin HQ | [/admin](https://adi576-seamline.hf.space/admin) || Cashier terminal | [/cashier](https://adi576-seamline.hf.space/cashier) || API (proxied) | `/checkout-api` |## Required secrets4 unmodified lines| `JWT_SECRET` | Long random string || `ADMIN_USERNAME` / `ADMIN_PASSWORD` | Staff login || `MANAGER_USERNAME` / `MANAGER_PASSWORD` | Manager login || `PUBLIC_API_URL` | `https://adi576-seamline.hf.space/checkout-api` |Optional: `DEFAULT_STORE_CODE`, `CASHIER_API_KEY` (+ same value as `NEXT_PUBLIC_CASHIER_API_KEY` at build if you protect cashier routes).123453 unmodified lines910111213141516171819202122234 unmodified lines28293031323334---title: ProFloemoji: 🛒colorFrom: greencolorTo: blue3 unmodified linespinned: false---# ProFlo — Full checkout platformAll apps run in one Docker Space behind nginx on port **7860**.| App | URL ||-----|-----|| Customer shop | [/shop](https://adi576-proflo.hf.space/shop) || Admin HQ | [/admin](https://adi576-proflo.hf.space/admin) || Cashier terminal | [/cashier](https://adi576-proflo.hf.space/cashier) || API (proxied) | `/checkout-api` |## Required secrets4 unmodified lines| `JWT_SECRET` | Long random string || `ADMIN_USERNAME` / `ADMIN_PASSWORD` | Staff login || `MANAGER_USERNAME` / `MANAGER_PASSWORD` | Manager login || `PUBLIC_API_URL` | `https://adi576-proflo.hf.space/checkout-api` |Optional: `DEFAULT_STORE_CODE`, `CASHIER_API_KEY` (+ same value as `NEXT_PUBLIC_CASHIER_API_KEY` at build if you protect cashier routes).
2 unmodified lines3456789101112131415161718192019 unmodified lines404142434445462 unmodified lines$ErrorActionPreference = "Stop"$Root = Resolve-Path (Join-Path $PSScriptRoot "..\..")$SpaceDir = Join-Path $env:TEMP "Zippmart-hf-space"$SpaceUrl = "https://huggingface.co/spaces/ADI576/Zippmart"$SkipNames = @(".git", "node_modules", ".next", "dist","worker")$Token = $env:HF_TOKENif (-not $Token) { $Token = $env:HUGGING_FACE_HUB_TOKEN }if ($Token) {$SpaceUrl = "https://user:$Token@huggingface.co/spaces/ADI576/Zippmart"}if (Test-Path $SpaceDir) { Remove-Item -Recurse -Force $SpaceDir }19 unmodified linesPush-Location $SpaceDirgit add -Aif (-not (git diff --cached --quiet)) {git commit -m "Deploy Zippmart shop, admin, cashier + API (Docker Space)"}git pushif ($LASTEXITCODE -ne 0) {2 unmodified lines3456789101112131415161718192019 unmodified lines404142434445462 unmodified lines$ErrorActionPreference = "Stop"$Root = Resolve-Path (Join-Path $PSScriptRoot "..\..")$SpaceDir = Join-Path $env:TEMP "proflo-hf-space"$SpaceUrl = "https://huggingface.co/spaces/ADI576/ProFlo"$SkipNames = @(".git", "node_modules", ".next", "dist","worker", "docs", "nlp-lab", "infra", "proposals", "supabase")$Token = $env:HF_TOKENif (-not $Token) { $Token = $env:HUGGING_FACE_HUB_TOKEN }if ($Token) {$SpaceUrl = "https://user:$Token@huggingface.co/spaces/ADI576/ProFlo"}if (Test-Path $SpaceDir) { Remove-Item -Recurse -Force $SpaceDir }19 unmodified linesPush-Location $SpaceDirgit add -Aif (-not (git diff --cached --quiet)) {git commit -m "Deploy ProFlo shop, admin, cashier + API (Docker Space)"}git pushif ($LASTEXITCODE -ne 0) {
1 unmodified line23456781 unmodified line"name": "checkout-system","version": "1.0.0","private": true,"description": "SeamLine apparel checkout platform monorepo","workspaces": ["apps/*","services/*",1 unmodified line23456781 unmodified line"name": "checkout-system","version": "1.0.0","private": true,"description": "ProFlo apparel checkout platform monorepo","workspaces": ["apps/*","services/*",
55 unmodified lines5657585960616255 unmodified linesexport const APPAREL_SEASONS = ["", "SS26", "AW26", "Core", "Clearance"] as const;export const BRAND_NAME = "SeamLine";export function buildVariantSku(styleCode: string, color: string, size: string, barcode: string): string {const parts = [styleCode, color, size]55 unmodified lines5657585960616255 unmodified linesexport const APPAREL_SEASONS = ["", "SS26", "AW26", "Core", "Clearance"] as const;export const BRAND_NAME = "ProFlo";export function buildVariantSku(styleCode: string, color: string, size: string, barcode: string): string {const parts = [styleCode, color, size]
1 unmodified line23456781 unmodified line# Docs: https://render.com/docs/blueprint-specservices:- type: webname: seamline-apiruntime: nodeplan: freerootDir: services/api1 unmodified line23456781 unmodified line# Docs: https://render.com/docs/blueprint-specservices:- type: webname: proflo-apiruntime: nodeplan: freerootDir: services/api
36 unmodified lines37383940414243444536 unmodified lines# 1. Sign up at resend.com (free tier: ~100 emails/day)# 2. Add and verify your domain, or use onboarding address for testing only# 3. Create an API key → set RESEND_API_KEY# 4. Set EMAIL_FROM to a verified sender, e.g. SeamLine <receipts@yourdomain.com># RESEND_API_KEY=re_xxxxxxxx# EMAIL_FROM=SeamLine <onboarding@resend.dev># Optional — generic webhook if you use Make/Zapier instead of Resend# RECEIPT_NOTIFY_WEBHOOK_URL=https://hooks.example.com/receipt36 unmodified lines37383940414243444536 unmodified lines# 1. Sign up at resend.com (free tier: ~100 emails/day)# 2. Add and verify your domain, or use onboarding address for testing only# 3. Create an API key → set RESEND_API_KEY# 4. Set EMAIL_FROM to a verified sender, e.g. ProFlo <receipts@yourdomain.com># RESEND_API_KEY=re_xxxxxxxx# EMAIL_FROM=ProFlo <onboarding@resend.dev># Optional — generic webhook if you use Make/Zapier instead of Resend# RECEIPT_NOTIFY_WEBHOOK_URL=https://hooks.example.com/receipt
286 unmodified lines28728828929029129229329429529629710 unmodified lines308309310311312313314286 unmodified lines).join("");return `<!DOCTYPE html><html><body style="font-family:sans-serif;color:#111"><h2>SeamLine receipt</h2><p><strong>${receiptNumber}</strong> · ${order.storeCode}</p><table cellpadding="6" cellspacing="0" border="0">${rows}</table><p>Subtotal: ₹${order.subtotal.toFixed(2)}<br>Tax: ₹${order.taxTotal.toFixed(2)}<br><strong>Total: ₹${order.total.toFixed(2)}</strong></p><p>Thank you for shopping with SeamLine.</p></body></html>`;}10 unmodified linesbody: JSON.stringify({from: emailFrom,to: [to],subject: `Your SeamLine receipt ${receiptNumber}`,html: receiptEmailHtml(order, receiptNumber)})});286 unmodified lines28728828929029129229329429529629710 unmodified lines308309310311312313314286 unmodified lines).join("");return `<!DOCTYPE html><html><body style="font-family:sans-serif;color:#111"><h2>ProFlo receipt</h2><p><strong>${receiptNumber}</strong> · ${order.storeCode}</p><table cellpadding="6" cellspacing="0" border="0">${rows}</table><p>Subtotal: ₹${order.subtotal.toFixed(2)}<br>Tax: ₹${order.taxTotal.toFixed(2)}<br><strong>Total: ₹${order.total.toFixed(2)}</strong></p><p>Thank you for shopping with ProFlo.</p></body></html>`;}10 unmodified linesbody: JSON.stringify({from: emailFrom,to: [to],subject: `Your ProFlo receipt ${receiptNumber}`,html: receiptEmailHtml(order, receiptNumber)})});
README.md+6-6
apps/admin-web/.env.example+1-1
apps/admin-web/app/admin/dashboard/page.tsx+1-1
apps/admin-web/app/admin/page.tsx+1-1
apps/admin-web/app/globals.css+1-1
apps/admin-web/app/layout.tsx+2-2
apps/admin-web/app/page.tsx+1-1
apps/admin-web/lib/apparel.ts+1-1
apps/admin-web/lib/receipt.ts+3-3
apps/admin-web/next-env.d.ts+1-1
apps/cashier-web/app/gate/page.tsx+1-1
apps/cashier-web/app/layout.tsx+2-2
apps/cashier-web/app/page.tsx+2-2
apps/cashier-web/next-env.d.ts+1-1
apps/customer-web/.env.example+2-2
apps/customer-web/app/globals.css+1-1
apps/customer-web/app/layout.tsx+1-1
apps/customer-web/app/page.tsx+2-2
apps/customer-web/app/shop/components/ShopShell.tsx+4-4
apps/customer-web/app/shop/context/ShopContext.tsx+3-3
apps/customer-web/app/shop/lib/apparel.ts+1-1
apps/customer-web/app/shop/lib/receiptDownload.ts+3-3
apps/customer-web/app/shop/page.tsx+3-3
apps/customer-web/lib/cartBackup.ts+1-1
apps/customer-web/lib/offlineCartQueue.ts+1-1
apps/customer-web/next-env.d.ts+1-1
deploy/huggingface-admin/Dockerfile+1-1
deploy/huggingface-admin/README.md+3-3
deploy/huggingface-admin/push.ps1+6-6
deploy/huggingface-cashier/Dockerfile+1-1
deploy/huggingface-cashier/README.md+3-3
deploy/huggingface-cashier/push.ps1+6-6
deploy/huggingface/README.md+6-6
deploy/huggingface/push.ps1+5-5
package.json+1-1
packages/shared/src/apparel.ts+1-1
render.yaml+1-1
services/api/.env.example+2-2
services/api/src/index.ts+3-3