Skip to content

Sandeep7784/Code-Optimizer-Platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Code Optimizer

Overview

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.

Prerequisites

  • 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

Frontend Setup

  1. Navigate to the frontend directory:
    cd frontend
  2. Install the necessary npm packages:
    npm install
  3. Run the development server:
    npm run dev
  4. The frontend will be running at http://localhost:5173.

Backend Setup

  1. Navigate to the backend directory:

    cd backend
  2. 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
  3. Install the required packages:

    pip install -r requirements.txt
  4. 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
  5. Run the FastAPI backend:

    python main.py
  6. The backend will be running at

    http://localhost:8080

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published