Marketing SaaS Scaffold ======================= What you have: - server/ : Express-based OpenAI proxy (server.js) - client/ : Vite + React simple client (src/App.jsx) - Dockerfile + docker-compose.yml : quick dev container for server - This scaffold is minimal and meant for local testing & extension. Quick start (local, requires Node 18+) ------------------------------------- 1) Server-only (recommended for testing quickly): cd server npm install # set your OPENAI_API_KEY environment variable first, e.g.: # export OPENAI_API_KEY="sk-..." npm start The server will be available at http://localhost:5174 You can then run the client dev server: 2) Client: cd client npm install npm run dev Open the printed Vite URL (http://localhost:5173 by default). Note: For the client to call the server proxy in dev, you may need to set up a proxy in Vite config or run the client with the server as a reverse proxy. Alternatively, run the client build and serve statically via the server. 3) Docker (server) docker-compose up --build # set OPENAI_API_KEY in your environment when running compose: OPENAI_API_KEY=sk-... docker-compose up --build Next steps: - Add authentication (Clerk/Auth0) and persistent DB (Postgres + Prisma). - Add S3 storage for assets. - Replace simple client with the 3D UI we built earlier (copy the client code). - Harden rate limits, add logging, monitoring and billing integrations.