Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An AI-powered code companion for code conversion, debugging, explanation, pseudocode generation, complexity analysis, optimization, and intelligent coding assistance.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages