Installation Instructions
Developers
Clone the repository from GitHub.
You need pip3, MySQL and virtualenv installed on your system. For Debian/Ubuntu, run the following commands:
sudo apt install python3-pip -y
sudo pip3 install virtualenv
Now, run the following commands to install the virtual environment.
git clone -b development https://github.com/crux-bphc/crux-judge
cd crux-judge
tools/setup
Now, run the following command to compile your own sandbox-exe:
sudo apt install libseccomp2 libseccomp-dev
gcc src/server/contest/sandbox/*.c -lm -pthread -lseccomp -o src/server/contest/sandbox/sandbox-exe
Now, you should have virtual-env installed, as well as dependencies installed/updated using pip3. You need to activate the virtual environment just installed to start developing.
source tools/activate
To test if the Virtual Environment has been setup, run which python3. If it shows the path to your Project Directory, then you are now ready to develop.
Lastly, we need to set a few things for Django. Run the following command :
tools/setup_django