-
Notifications
You must be signed in to change notification settings - Fork 2
Installation Guide
Rahul S. Bhatt edited this page Feb 10, 2025
·
1 revision
This guide walks you through setting up the AI Analysis for LeetCode project in your local environment.
- Python 3.8 or higher
- Docker (optional, for containerized deployment)
- Git
- Clone the Repository
git clone https://github.com/yourusername/ai-analysis-for-leetcode.git
cd ai-analysis-for-leetcode- Set Up Virtual Environment
python -m venv venv
# On Windows
.\venv\Scripts\activate
# On Unix or MacOS
source venv/bin/activate- Install Dependencies
pip install -r requirements.txt- Configuration
- Copy
.env.exampleto.env - Update environment variables with your settings
- Build the Docker Image
docker build -t ai-leetcode-analyzer .- Run the Container
docker run -p 5000:5000 ai-leetcode-analyzer- Run Tests
python test_setup.py- Start the Application
python api/app.py- Access the Application
- Open your browser and navigate to
http://localhost:5000 - You should see the application dashboard
- Port Conflicts
- If port 5000 is already in use, modify the port in
api/app.pyor use Docker port mapping
- Dependencies Issues
- Ensure your Python version is compatible
- Try upgrading pip:
pip install --upgrade pip - Install dependencies one by one if bulk installation fails
If you encounter any issues:
- Check the Issues page
- Create a new issue with detailed error information
- Review the logs in the
logsdirectory
- Review the API Documentation
- Explore the Architecture Overview
- Learn how to Contribute to the project