Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1011 Bytes

File metadata and controls

46 lines (32 loc) · 1011 Bytes

CodeMate

Simple Flask-based AI code assistant using MySQL, Tailwind CSS, and the OpenAI API.

Features

  • User login / sign up
  • Code conversion between 10+ languages
  • Code debugging and error explanation
  • Code explanation
  • Code-to-pseudocode and flowchart-style steps
  • Algorithm complexity (Big-O) analysis
  • Performance bottleneck detection and optimization suggestions
  • Chatting with an AI assistant
  • History

Setup

  1. Create and activate a virtual environment (optional but recommended).

  2. Install dependencies:

    pip install -r requirements.txt
  3. Make sure MySQL is running and create the code database:

    CREATE DATABASE code CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
  4. Run the schema:

    mysql -u root -p code < schema.sql
  5. Edit the .env file if needed (database credentials, secret key, OpenAI key).

  6. Run the Flask app:

    python app.py
  7. Open http://127.0.0.1:5000 in your browser.