A web-based interface for compiling and running code in multiple languages locally, similar to online compiler services.
- Rust
- Python
- C
- C++
- Python 3.6 or higher
- Flask
- Rust compiler (rustc) installed and available in the system PATH
- GCC (for C compilation) installed and available in the system PATH
- G++ (for C++ compilation) installed and available in the system PATH
- Python interpreter (for Python code execution)
-
Make sure you have the required compilers/interpreters installed:
- Rust: https://www.rust-lang.org/tools/install
- GCC/G++: https://gcc.gnu.org/install/ (or use MinGW on Windows)
- Python: https://www.python.org/downloads/
-
Install the required Python packages:
pip install -r requirements.txt -
Download the dependencies for offline use:
python download_dependencies.pyThis will download all JavaScript and CSS libraries to the static folder.
- Run the Flask application:
python main.py - Open your web browser and navigate to:
http://localhost:5000 - Select the programming language you want to use
- Enter your code in the editor or select one of the provided examples
- Add compiler options if needed
- Provide input for your program if required
- Click "Compile & Run" to execute the code
- View the output or any errors in the output panel
- Web-based code editor with syntax highlighting
- Support for multiple programming languages (Rust, Python, C, C++)
- Compile and run code locally
- Provide input to your programs
- Add compiler options
- View compilation errors and program output
- Example code snippets for each language
- Clean, responsive UI
- Completely offline - no internet connection required
This application is designed to work completely offline. All libraries and resources are served locally from the static directory. The dependencies are downloaded once using the download_dependencies.py script.
If you need to update the dependencies or install them again, simply run:
python download_dependencies.py