CodeX-API
CodeX-API copied to clipboard
The new version of CodeX API with it's backend, a lot of you wanted me to make the backend opensource, now it's ready to receive contributions from you. Thanks for being patient, more languages coming...
Is there a way to work with multiple input? For example the code is java, and asking twice for getting input from users.
- Time and memory option in the endpoint can be put - Maximum time and memory can be set to avoid crashing
` private JSONObject getCompileResult(String code, String input, String language) throws UnirestException { Unirest.setTimeouts(0, 0); HttpResponse response = Unirest.post("https://codex-api.herokuapp.com") .header("Content-Type", "application/x-www-form-urlencoded") .field("code", code) .field("language", language) .field("input", input==null ? "" : input)...
Future feature to be implemented: running code with multiple files. This seems fairly straight forward with compiled languages. For example, for c/cpp we can send the code as an array...
Hi @Jaagrav, I guess that API has stopped working, could you please fix the backend it was very helpful Thanks
in Dockerfile, you're exposing and 8080 and running the server on 3000 which is wrong this pull request updates the setup documentation of running this API in locally "self host"