A simple FastAPI application with MongoDB for building AI chatbot applications.
pip install -r requirements.txtdocker-compose up -duvicorn main:app --reload --host 0.0.0.0 --port 8000- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc
- API Health: http://localhost:8000/health
- Mongo Express: http://localhost:8081
- Login: admin / admin123
cd frontend
python -m http.server 8080Then open: http://localhost:8080
- User registration and login
- Create and manage chat sessions
- Send messages and receive bot responses
- Session history with timestamps
POST /api/auth/register- Register userPOST /api/auth/login- Login userPOST /api/chat-sessions/- Create chat sessionGET /api/chat-sessions/- List sessionsPOST /api/messages/{session_id}- Send message