This repository contains a simple full-stack AI chatbot application using FastAPI for the backend, React (via Vite) for the frontend, and SQLite for data persistence.
- FastAPI REST API with SQLite and SQLAlchemy.
- Small rule-based chatbot that replies to common greetings and stores the conversation in a database.
/teachendpoint allows adding new trigger/response pairs at runtime for lightweight, continuous learning.- Run locally:
cd backend uvicorn app.main:app --reload - Tests:
pytest
- React application built with Vite.
- Fetches existing chat history on load and communicates with backend via
/apiproxy. - Simple form lets users teach the bot new responses without retraining.
- Development:
cd frontend npm install npm run dev - Tests:
npm test -- --run - Build for production:
npm run build


