This project is a web-based platform that allows students to write, compile, and run C programs directly from their browsers. Additionally, the platform includes a PDF viewer that contains a C language book.
- Code Editor: An integrated code editor with syntax highlighting. The editor is pre-loaded with a simple "Hello, World!" C program.
- Input/Output Areas: Separate areas for entering input and displaying the C program output.
- PDF Viewer: Displays a PDF document on the right side of the page.
- Save Feature: Allows users to save their code as a .c file, ensuring that their work is preserved and can be accessed later.
- Open Feature: Enables users to load previously saved .c files into the code editor, allowing them to continue working on their code from where they left off.
- Python 3.x is required to run the Flask server.
Install the required Python packages using the requirements.txt
file:
pip install -r requirements.txt
GCC is required to compile C programs. Check if GCC is installed by running:
gcc --version
If GCC is not installed, follow the instructions for your operating system:
- Ubuntu/Debian:
sudo apt-get update
sudo apt-get install gcc
- macOS (requires Xcode command line tools):
xcode-select --install
- Windows:
- Install MinGW or use the Windows Subsystem for Linux (WSL) to get a Unix-like environment.
- iyteicon.png: Icon for the webpage.
- sample.pdf: PDF document to be displayed on the right side of the page.
/project-root
/templates
main.html # Main HTML file for the web interface
/static
iyteicon.png # Icon for the webpage
sample.pdf # PDF to be displayed on the right side
app.py # Flask application code
requirements.txt # Python dependencies
-
Install Python dependencies:
pip install -r requirements.txt
-
Ensure GCC is installed as described above.
-
Start the Flask application:
python app.py
-
Access the application by navigating to
http://127.0.0.1:5000/
in your browser.
- The platform is designed to run locally, and no login is required for users.
- The initial C program loaded into the editor is a simple "Hello, World!" program.
- The right side of the page displays a PDF document, and the signature "Created by Res. Asst. Okan DÜZYEL, Dept. of Electrical and Electronics Engineering".
This project is licensed under the MIT License. See the LICENSE file for more details.