Skip to content

iboates/minimal-chatbot-api

Repository files navigation

AI Chatbot API

A simple FastAPI application with MongoDB for building AI chatbot applications.

Quick Start

1. Install Dependencies

pip install -r requirements.txt

2. Start MongoDB

docker-compose up -d

3. Run the API

uvicorn main:app --reload --host 0.0.0.0 --port 8000

4. Access API Documentation

5. Access MongoDB Admin (Optional)

Frontend Client

Run the Web Client

cd frontend
python -m http.server 8080

Then open: http://localhost:8080

Features

  • User registration and login
  • Create and manage chat sessions
  • Send messages and receive bot responses
  • Session history with timestamps

API Endpoints

  • POST /api/auth/register - Register user
  • POST /api/auth/login - Login user
  • POST /api/chat-sessions/ - Create chat session
  • GET /api/chat-sessions/ - List sessions
  • POST /api/messages/{session_id} - Send message

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published