Code_Playground is an online code editor designed to run C and C++ programs, as well as to write and develop code in HTML, CSS, and JavaScript. It features sorting algorithm visualizations, quizzes, and various administrative functionalities.
This project was developed during my 4th semester at university for the course:
- Course Code: CIT-220
- Course Title: Web Programming Project
- User Registration
- User Login
- Admin Login
- Admin Panel
- Report Generation
- Online Code Editor (HTML, CSS, JS)
- C and C++ Code Execution
- Quiz Examination
- Sorting Algorithm Visualizer
- HTML
- CSS
- JavaScript
- Bootstrap
- jQuery
- PHP
- MySQL
- Development Tools: Visual Studio Code
- Web Server: Apache (via XAMPP)
- C/C++ Compiler: MinGW (Code::Blocks recommended)
- Run XAMPP.
- Create a MySQL database called
code_playground
. - Import the provided SQL file into the database.
- File Location:
Code_Playground/Database
- File Location:
- Copy the
Code_Playground
folder into theC:\xampp\htdocs
directory. - Open your browser and go to: http://localhost/code_playground/
- Navigate to: Code_Playground/main_web/IDE playground/compilers/
Modify the files
c.php
,cpp.php
, andcpp11.php
to set the correct path to your C/C++ compiler. - Example path (for Code::Blocks with MinGW): C:\Program Files\CodeBlocks\MinGW\bin
If your C/C++ compiler path is different, update these files accordingly.
- Use the provided "web test.txt" file for demo code to test the web playground.
- File Location:
Code_Playground/main_web/web playground/
- Sample C/C++ demo code is available at: Code_Playground/main_web/IDE playground/code
- Username:
admin
- Password:
12345
To add another admin, use MySQL or XAMPP GUI to insert a new record. Ensure the password is hashed using the bcrypt algorithm.
Example:
- Password:
12345
- Bcrypt hash:
$2y$10$azd9hwV9elAXc598gv25P.hZ0fw8j2QlKbU7Q/ddOjuBg349SoQZm
- Username:
Mehedi Hasan
- Password:
12345
- Code Execution: Supports C and C++ program execution.
- Algorithm Visualization: A visualizer for sorting algorithms to understand their workings interactively.
- Quiz Examination: Allows users to take quizzes for learning and evaluation purposes.
- Admin Panel: Manage users, view reports, and handle administrative tasks.
Enjoy exploring Code_Playground! 🚀