A minimal demo showing:
- Backend: Node.js + Express endpoints that proxy requests to OpenAI.
- Frontend: Vite + React single-page app with Chat and Summariser.
- backend/ — Express server
- frontend/ — Vite + React app
- cheat-sheet.md — talking points & run commands
-
Clone or unzip this repo.
-
Backend:
cd backend npm install cp .env.example .env # set OPENAI_API_KEY in .env npm start
Backend runs on http://localhost:3000
-
Frontend:
cd frontend npm install npm run dev
Frontend runs on http://localhost:5173 (or the port Vite prints).
- Do not commit your OpenAI API key. Use
.env
and keep it private. - This demo uses the OpenAI Chat Completions API (gpt-3.5-turbo).
- For production, secure the backend and add rate limits + usage monitoring.