Major update for v1 and tests
This commit is contained in:
10
README.md
10
README.md
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user