
On this page
💻 Create Your Own LeetCode with Judge🔥
What is Judge0?
Judge0 is an open-source online code execution engine that supports over 60 programming languages. It allows you to compile and run code remotely via a REST API, making it perfect for building coding platforms, online judges, or interview preparation tools like LeetCode, HackerRank, or Codeforces. Whether you're running C++, Python, JavaScript, or Go — Judge0 handles it all in a secure, sandboxed environment.
How to Setup Judge0?
I recommend using Linux especially Ubuntu-20.04, but you can also setup this on Mac.
For Windows Users Special Steps
Install WSL in your Windows, run this command in your PowerShell terminal:
Installing WSL
Then setup your Unix username and password. After this restart your PC then run this command to install Ubuntu-20.04:
Then login to Ubuntu with this command:
Your terminal will change like this:

Then run command:
After this:
After rebooting the Ubuntu it will be closed so then restart with:
Then again it will be like this:

Then run again:
Then open the grub file in nano with command:
✅ Fixing GRUB Syntax Error in Ubuntu
🔧 Step 1: Open the GRUB config file
It'll ask for your password — type it and press
Enter.
🧾 Step 2: Paste the following into the file
Note: (if you have empty grub file then do this if not paste only last line):
Use Ctrl + Shift + V to paste (if you're on a standard terminal).
Make sure there are no extra characters or spaces after any line.
💾 Step 3: Save and Exit
Press Ctrl + O (to write/save the file)
Press Enter (to confirm)
Press Ctrl + X (to exit the editor)
🔄 Step 4: Update GRUB
📋 If a popup appears, select the 2nd option (usually your system disk), then press OK. If no popup, it will just update silently — that's fine too.
✅ Step 5: Reconfigure and clean up
Run this to finish up:
This should fix the broken grub-pc and grub-gfxpayload-lists issues.
After this everything is on Judge0 GitHub documentation link: https://github.com/judge0/judge0/blob/master/CHANGELOG.md
But here's simple steps to do it:
Download Docker and Docker-compose with this command:
Getting Judge0 File
Note: Mac users can follow this from here
Installing Unzip
Unzip the Judge0 file
Setting Up Password
Then go to Judge0 file with cd command:
Then set the REDIS_PASSWORD and POSTGRES_PASSWORD and judge0.conf of your choice.
I recommend using this website to generate passwords.
Press Ctrl + O (to write/save the file)
Press Enter (to confirm)
Press Ctrl + X (to exit the editor)
Running DB and Docker
After lets run db and redis this will take time:
Then check if containers are running or not with command:

Then go to http://localhost:2358/docs if it's open your setup done and you can go to http://localhost:2358/dummy-client.html to run the code.
For Restarting the Program
If you want to start the setup just run these command in Windows terminal:
🎯 Conclusion
Now you have your own Judge0 setup running locally! You can build your own coding platform, create online judges, or develop interview preparation tools. The Judge0 API gives you the power to execute code in over 60 programming languages securely.
Happy coding! 🚀
Last updated
Building something similar?
Talk to our team about your SaaS, web or mobile product. We reply within one business day.
Get a free consultation
