A simple full-stack web application that provides an online Python IDE with syntax highlighting and code execution capabilities.
- Syntax highlighting using CodeMirror
- Code execution on the server
- Real-time output display
- Error handling
- Modern and clean UI
-
Clone this repository
-
Install the required packages:
pip install -r requirements.txt -
Run the application:
python app.py -
Open your browser and navigate to
http://localhost:5000
- Backend: Flask (Python)
- Frontend: HTML, CSS, JavaScript
- Code Editor: CodeMirror
- Additional Libraries: Flask-CORS
The application runs Python code in a sandboxed environment with a timeout limit. However, for production use, additional security measures should be implemented, such as:
- Code execution in isolated containers
- Input validation and sanitization
- Rate limiting
- User authentication
- Resource usage limitations
MIT License