This repository contains various examples that show how you use various features of Judge0.
Before you start exploring these examples, you need to know the following:
- Judge0 uses HTTP protocol.
- For us, the simplest way to showcase the different features of Judge0 is to use curlin the Bash programming language to communicate with Judge0 via HTTP protocol.- You need to find an appropriate HTTP client library for your programming language of choice.
 
- These examples have been tested on Ubuntu 22.04 but should work anywhere you can run Bash scripts.
- To have you get started fast, these examples use the Shared Cloud of Judge0 CE and Judge0 Extra CE.
To successfully run these examples, you will need to:
- Sign up to use Judge0 CE and Judge0 Extra CE on Sulu with 20K Free Submissions OR
- Clone this repository.
- Edit the file .envand add the API key that Sulu generated for you. If you are using RapidAPI, the process is similar.
- Make sure you have curlandjqinstalled.
- macOS Make sure you have gbase64in yourPATH. It can be installed withbrew install coreutils.
- Make sure you have fulfilled all prerequisites.
- Every example is self-contained; thus, cdinto the directory of the example you want to run.
- Run the run_example.shscript from within the example directory.$ ./run_example.sh