Skip to content
View llu77's full-sized avatar

Highlights

  • Pro

Block or report llu77

Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
llu77/README.md

Chatbot Full-Stack Example

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.

Backend

  • FastAPI REST API with SQLite and SQLAlchemy.
  • Small rule-based chatbot that replies to common greetings and stores the conversation in a database.
  • /teach endpoint allows adding new trigger/response pairs at runtime for lightweight, continuous learning.
  • Run locally:
    cd backend
    uvicorn app.main:app --reload
  • Tests:
    pytest

Frontend

  • React application built with Vite.
  • Fetches existing chat history on load and communicates with backend via /api proxy.
  • 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

Popular repositories Loading

  1. studio studio Public

    TypeScript 1

  2. mmmmm mmmmm Public

    1

  3. llu77 llu77 Public

    Config files for my GitHub profile.

    HTML

  4. rehab rehab Public

    HTML

  5. monwah-bot monwah-bot Public

    My WhatsApp AI assistant - Monwah

    Python

  6. omar omar Public

    TypeScript