judge0 / ide

✨ Simple, free and open-source online code editor.
https://ide.judge0.com
MIT License
818 stars 256 forks source link

RapidAPI Support #46

Closed caspershw closed 4 years ago

caspershw commented 4 years ago

Since June 1st, it can't work with public api, it will be easier to deploy if you can support RapidAPI (like clone the code, fill the auth token and ready-to-use).

hermanzdosilovic commented 4 years ago

What you could do locally before deployment is the following:

  1. Change the base URL here to value https://judge0.p.rapidapi.com.
  2. Add headers X-RapidAPI-Host and X-RapidAPI-Key here, here and here. Value of X-RapidAPI-Host header should be judge0.p.rapidapi.com and value of X-RapidAPI-Key should be your API key that RapidAPI gave you.

I hope this helps.

Herman

armornet commented 3 years ago

can you please let me know how to add the code and below which line..

hermanzdosilovic commented 3 years ago

Hi @armornet,

  1. Clone this repository.
  2. Checkout to rapidapi branch.
  3. Add you API key to here.

Note: You can get your API key here: https://rapidapi.com/hermanzdosilovic/api/judge0