Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 858 Bytes

File metadata and controls

61 lines (41 loc) · 858 Bytes

Chatbot Monorepo

Minimal interview-friendly chatbot boilerplate with a React frontend and NestJS backend.

Stack

  • Frontend: React + Vite + TypeScript
  • Backend: NestJS + TypeScript
  • Database (included, not wired up yet): TypeORM + PostgreSQL

Prerequisites

  • Node.js 18+
  • npm

Setup

Backend

cd backend
npm install
cp .env.example .env
npm run start:dev

The API runs at http://localhost:3000.

Frontend

cd frontend
npm install
npm run dev

The app runs at http://localhost:5173 and proxies /chat requests to the backend.

API

POST /chat

Request:

{ "message": "Hello" }

Response:

{ "role": "assistant", "content": "Test complete" }

Project Structure

chatbot/
├── frontend/   # React chat UI
└── backend/    # NestJS API