Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 2.41 KB

README.md

File metadata and controls

34 lines (28 loc) · 2.41 KB

ℹ️ Examples

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:

  1. Judge0 uses HTTP protocol.
  2. For us, the simplest way to showcase the different features of Judge0 is to use curl in 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.
  3. These examples have been tested on Ubuntu 22.04 but should work anywhere you can run Bash scripts.
  4. To have you get started fast, these examples use the Shared Cloud of Judge0 CE and Judge0 Extra CE.
    • Sign up to use Judge0 CE and Judge0 Extra CE on Sulu and get 20K Free Submissions to try out these examples.
    • There is also a FREE plan of Judge0 CE which you can subscribe to here.
    • There is also a FREE plan of Judge0 Extra CE, which you can subscribe to here.

Prerequisites

To successfully run these examples, you will need to:

  1. Sign up to use Judge0 CE and Judge0 Extra CE on Sulu with 20K Free Submissions OR
  2. Clone this repository.
  3. Edit the file .env and add the API key that Sulu generated for you. If you are using RapidAPI, the process is similar.
  4. Make sure you have curl and jq installed.
  5. macOS Make sure you have gbase64 in your PATH. It can be installed with brew install coreutils.

Get Started

  1. Make sure you have fulfilled all prerequisites.
  2. Every example is self-contained; thus, cd into the directory of the example you want to run.
  3. Run the run_example.sh script from within the example directory.
    $ ./run_example.sh