AI Chat History is a web application that allows users to interact with an AI assistant and view their chat history. The project is built using Next.js, React, and Tailwind CSS for the frontend, with a Python backend for AI integration.
Before you begin, ensure you have the following installed:
- Node.js (v14 or later)
- npm (v6 or later)
- Python (v3.8 or later)
- pip (Python package manager)
-
Clone the repository:
git clone https://github.com/your-username/ai-chat-history.git cd ai-chat-history
-
Install frontend dependencies:
npm install
-
Install backend dependencies:
pip install -r requirements.txt
-
Set up environment variables: Create a
.env.local
file in the root directory and add the following:OPENAI_API_KEY=your_openai_api_key_here
-
Start the development server:
npm run dev
-
In a separate terminal, start the Python backend:
python backend/main.py
-
Open your browser and navigate to
http://localhost:3000
-
Start the development server:
npm run dev
-
Start the Python backend:
python backend/main.py
-
Open your browser and navigate to
http://localhost:3000