Skip to content

An online judge for C, C++, Java and Python programming courses

License

GPL-3.0, OSL-3.0 licenses found

Licenses found

GPL-3.0
license.txt
OSL-3.0
ci_license.txt
Notifications You must be signed in to change notification settings

ConnectNIT/Sharif-Judge

 
 

Repository files navigation

Sharif Judge

Sharif Judge is a free and open source online judge for C, C++, Java and Python programming courses.

The web interface is written in PHP (CodeIgniter framework) and the main backend is written in BASH.

Python in Sharif Judge is not sandboxed yet. Just a low level of security is provided for python. If you want to use Sharif Judge for python, USE IT AT YOUR OWN RISK or provide sandboxing yourself.

The full documentation is at http://docs.sharifjudge.ir

Download the latest release from http://sharifjudge.ir/download

Features

  • Multiple user roles (admin, head instructor, instructor, student)
  • Sandboxing (not yet for python)
  • Cheat detection (similar codes detection) using Moss
  • Custom rule for grading late submissions
  • Submission queue
  • Download results in excel file
  • Download submitted codes in zip file
  • "Output Comparison" and "Tester Script" methods for checking output correctness
  • Add multiple users
  • Rejudge
  • Scoreboard
  • Notifications
  • ...

Requirements

For running Sharif Judge, a Linux server with following requirements is needed:

  • Webserver running PHP version 5.3 or later with mysqli extension
  • PHP CLI (PHP command line interface, i.e. php shell command)
  • MySql database
  • PHP must have permission to run shell commands using shell_exec() php function (specially shell_exec("php");)
  • Tools for compiling and running submitted codes (gcc, g++, javac, java, python and python3 commands)
  • It is better to have perl installed for more precise time and memory limit and imposing size limit on output of submitted code.

Installation

  1. Download the latest release from download page and unpack downloaded file in your public html directory.
  2. Create a MySql database for Sharif Judge.
  3. Set database connection settings in file application/config/database.php.
  4. Open the main page of Sharif Judge in a web browser and follow the installation process.
  5. Log in with your admin account.
  6. [IMPORTANT] Move folders tester and assignments somewhere outside your public directory. Then save their full path in Settings page. These two folders must be writable by PHP. Submitted files will be stored in assignments folder. So it should be somewhere not publicly accessible.
  7. [IMPORTANT] Secure Sharif Judge

After Installation

About

An online judge for C, C++, Java and Python programming courses

Resources

License

GPL-3.0, OSL-3.0 licenses found

Licenses found

GPL-3.0
license.txt
OSL-3.0
ci_license.txt

Stars

Watchers

Forks

Packages

No packages published