Tutorials in this Series
- Deploy our Online Code Executor in Google Cloud (this tutorial)
- Understanding the API of Judge0
- Creating an online code editor front-end
Youtube Demo
Introduction
Judge0 is a robust, scalable, and open-source online code execution system that can be used to build a wide range of applications that need online code execution features. It is used in multiple competitive programming platforms, code editors, e-learning platforms.
We will deploy judge0 in google cloud for our online code execution.
Step 1: Create a project in google cloud and enable billing
Step 2: Create a VM instance from Compute Engine
Things to Note
- You get $300 free credits when you open the account.
- you have per-second billing, which is super awesome, pay as you use.
Step 4: Install Docker and Docker Compose in the VM
Follow this page for detailed instructions for self-hosting of judge-0
Judge0 CE
🔥 The most advanced open-source online code execution system in the world.
Table of Contents
- About
- Features
- Get Started
- Flavors
- Supported Languages
- References
- Citation
- Community
- Author and Contributors
- Changelog
- Special Thanks
- License
About
Judge0 (pronounced like "judge zero") is a robust, scalable, and open-source online code execution system. You can use it to build a wide range of applications that need online code execution features. Some examples include competitive programming platforms, e-learning platforms, candidate assessment and recruitment platforms, online code editors, online IDEs, and many more.
In our research paper Robust and Scalable Online Code Execution System, we present Judge0's modern modular architecture that can be easily deployed and scaled. We study its design, comment on the various challenges in building such systems, and compare it with other available online code execution systems and online judge systems.
To see Judge0 in action, try Judge0 IDE -…
Install docker and docker-compose from the official page.
Make sure docker is running
sudo systemctl status docker
Make docker-compose is running
docker-compose --version
Download and extract release judge0 archive
wget https://github.com/judge0/judge0/releases/download/v1.12.0/judge0-v1.12.0.zip
unzip judge0-v1.12.0.zip
Run all services and wait a few seconds until everything is initialized
cd judge0-v1.12.0
sudo docker-compose up -d db redis
sleep 10s
sudo docker-compose up -d
sleep 5s
Resizing Disk space
You might get an error no space left on the device
You need to go to the Manage disk page, edit and increase the disk size
Stop and start the VM again, so that resize works properly.
Run the last command again
sudo docker-compose up -d
If everything goes well, you will see this screen.
Your instance of Judge0 v1.12.0 is now available at http://<IP ADDRESS OF YOUR SERVER>
If you open http://34.72.83.62/dummy-client.html and execute a sample code.
Judge0 Dummy Client
We will deep dive into the API and create front-end in upcoming tutorials
Tutorials in this Series
- Deploy our Online Code Executor in Google Cloud (this tutorial)
- Understanding the API of Judge0
- Creating an online code editor front-end
Top comments (1)
Bro i did exactly but the api not working