Product Reference Manager is a React, Express, MySQL, Drizzle, and tRPC application for managing product catalogs with generated reference codes, duplicate detection, soft delete, filtering, and export workflows.
- React, Vite, TypeScript
- Express, tRPC, Drizzle ORM
- MySQL
- Caddy for production reverse proxy
- Windows Server startup scripts for local production deployment
pnpm install
pnpm run devCopy .env.example to .env and set DATABASE_URL before running the app.
pnpm run build
pnpm run startThe production server listens on PORT, defaulting to 3000. In production it fails fast if the configured port is busy, because Caddy proxies to a fixed backend port.
This repository includes Windows Server helper scripts for the current LAN deployment:
repair-production-autostart.ps1registers the corrected startup tasks.monitor-services.ps1monitors Caddy, the Node process, port3000, port443, and/api/health.PRODUCTION_RUNBOOK.mddocuments production operation details.SETUP-WINDOWS-SERVICES.mddocuments the older service-wrapper setup path.
For the current server, Caddy serves https://192.168.1.201 and proxies to localhost:3000.
pnpm run check
pnpm run lint
pnpm run test
pnpm run buildMIT