Skip to content

nplotko/chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors