Code Optimizer is a project aimed at optimizing code for better performance and efficiency. This repository contains both the frontend and backend components of the application.
- Node.js (for frontend)
- Python 3.10 or higher (for backend)
- Virtual environment tool (e.g.,
venv
for Python) - WSL (Windows Subsystem for Linux) if using Windows
- Navigate to the frontend directory:
cd frontend
- Install the necessary npm packages:
npm install
- Run the development server:
npm run dev
- The frontend will be running at
http://localhost:5173
.
-
Navigate to the backend directory:
cd backend
-
Create a virtual environment:
- On Ubuntu:
python3 -m venv venv source venv/bin/activate
- On Windows (using WSL with Ubuntu):
python3 -m venv venv source venv/bin/activate
- On Ubuntu:
-
Install the required packages:
pip install -r requirements.txt
-
Set up environment variables:
- Create a
.env
file in the root directory - Add the following API key:
GROQ_API_KEY=your_groq_api_key
- Replace
your_groq_api_key
with your actual GROQ API key
- Create a
-
Run the FastAPI backend:
python main.py
-
The backend will be running at
http://localhost:8080