Major update for v1 and tests

This commit is contained in:
khalid@traclabs.com
2026-05-23 03:28:58 -05:00
parent 628a6765f4
commit b1fb6fa3aa
1748 changed files with 27723 additions and 1854 deletions

View File

@@ -31,6 +31,11 @@ T-shirt customization editor with drag-and-drop design, background removal, and
# Install dependencies
npm install
# Optional but recommended for accurate exports: fetch the Google Fonts the
# editor uses, so node-canvas can render them server-side. Skipping this means
# exports fall back to whatever fonts the host system provides.
npm run fetch-fonts
# Start development (client on :3000, server on :3001)
npm run dev
@@ -53,6 +58,8 @@ apparel-designer/
├── vite.config.js # Vite + PWA config
├── package.json # Single package — all deps
├── index.html # Entry HTML with Google Fonts
├── scripts/
│ └── fetch-fonts.mjs # Downloads TTFs for server-side rendering
├── src/
│ ├── main.jsx # React entry + SW registration
│ ├── App.jsx # Root layout (sidebar / canvas / properties)
@@ -68,9 +75,10 @@ apparel-designer/
│ ├── hooks/ # useDesignEditor, useBackgroundRemoval, useExport, useTemplate
│ └── constants/ # fonts, stickers, templates
├── public/ # Favicon, PWA icons
├── fonts/ # Server-side TTFs (gitignored, populated by fetch-fonts)
├── uploads/ # User uploads (gitignored)
├── exports/ # Exported PNGs (gitignored)
├── docs/ # Template JSON schema
├── docs/ # Bug log, suggestions, change notes, template schema
├── Dockerfile
└── docker-compose.yml
```