Skip to content


Folders and files

Last commit message
Last commit date

Latest commit


Repository files navigation

OJudge Platform

What is OJudge?

OJudge Platform is a software for the creation of an Online Judge site, such as the famous At this moment it is under heavy development, which means that it is mostly unusable, and the source code is provided here mostly for developers willing to contribute to it.


The code is released under the terms of the GPL-3 license, a copy of which is available in the file LICENSE. According to the license, it comes with ABSOLUTELY NO WARRANTY, and you are free to reuse and distrubute it, in compliance with the terms of the mentioned license.


Instructions for the building and use of the software:


To build and run this software you need Wt ( and its dependencies (including boost, cmake and a C++17 compatible compiler). Check the Wt documentation on how to install it in your system.

You will also need PostgreSQL installed and running in your system.

oath-toolkit ( is required for Two Factor Authentication. It is available for install in all major Linux distributions.

GraphicsMagick++ is required for some image processing.


Clone this repository, or a fork of it, and from its root directory run:

$ cmake .
$ make

If your system is correctly setup, the code will be built. Then, check that the file points to the correct Wt/resources directory (which, by default, is /usr/share/Wt/resources, but, depending on your particular setup, could be /usr/local/share/Wt/resources or similar).

Now create an empty database, with proper permissions, for OJudge to use.


Before the first run, create or edit the file <your_home_directory>/.config/ojudge/config and include the following lines:

host=<the host of your database server, probably will be localhost>
dbname=<name of the database to use>
user=<username to access that database>
password=<password for the username>

Once that is setup, you can start the server by running:

$ ./

If there are no errors, you'll access the platform via your web browser, pointing it to http://localhost:9090. An administration user is created by default, with username admin and also password admin.

Questions or contributing

In case you have problems setting and running this software, or if you'd like to contribute code to its development, you are welcome to join us in We are also at Discord:

You can also contribute with financial support using these channels: