Minimal interview-friendly chatbot boilerplate with a React frontend and NestJS backend.
- Frontend: React + Vite + TypeScript
- Backend: NestJS + TypeScript
- Database (included, not wired up yet): TypeORM + PostgreSQL
- Node.js 18+
- npm
cd backend
npm install
cp .env.example .env
npm run start:devThe API runs at http://localhost:3000.
cd frontend
npm install
npm run devThe app runs at http://localhost:5173 and proxies /chat requests to the backend.
Request:
{ "message": "Hello" }Response:
{ "role": "assistant", "content": "Test complete" }chatbot/
├── frontend/ # React chat UI
└── backend/ # NestJS API