Simple Flask-based AI code assistant using MySQL, Tailwind CSS, and the OpenAI API.
- 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
-
Create and activate a virtual environment (optional but recommended).
-
Install dependencies:
pip install -r requirements.txt
-
Make sure MySQL is running and create the
codedatabase:CREATE DATABASE code CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
-
Run the schema:
mysql -u root -p code < schema.sql -
Edit the
.envfile if needed (database credentials, secret key, OpenAI key). -
Run the Flask app:
python app.py
-
Open
http://127.0.0.1:5000in your browser.