zakariamaaraki / RemoteCodeCompiler

An online code compiler supporting 11 programming languages (Java, Kotlin, Scala, C, C++, C#, Golang, Python, Ruby, Rust and Haskell) for competitive programming and coding interviews.
GNU General Public License v3.0
151 stars 50 forks source link

There is no front end for testing. Is rest api supported? #42

Closed rahulkumarsingh73690 closed 1 year ago

rahulkumarsingh73690 commented 1 year ago

image

rahulkumarsingh73690 commented 1 year ago

Where is docs - swagger-ui.html??

zakariamaaraki commented 1 year ago

Yes, or just go to http://localhost:8080/ you'll be redirected to the swagger-ui.html

rahulkumarsingh73690 commented 1 year ago

Can you please send a postman demo?

rahulkumarsingh73690 commented 1 year ago

{ "timestamp": "2022-12-15T16:08:48.066+00:00", "status": 500, "error": "Internal Server Error", "message": "", "path": "/api/compile" }

zakariamaaraki commented 1 year ago

Did you follow these steps to run a container instance of the compiler ?

rahulkumarsingh73690 commented 1 year ago

Yes, I followed all steps

zakariamaaraki commented 1 year ago

I updated the compiler to return messages of all unexpected exceptions. Can you please clone the current version, then run it and paste the returned message in the discussion so I can investigate the issue?

rahulkumarsingh73690 commented 1 year ago

Thank you.

can I put command line expression in this compiler like input?

On Sat, 17 Dec 2022 at 6:52 PM, Zakaria Maaraki @.***> wrote:

I updated the compiler to return messages of all unexpected exceptions. Can you please clone the current version, then run it and paste the returned message in the discussion so I can investigate the issue?

— Reply to this email directly, view it on GitHub https://github.com/zakariamaaraki/RemoteCodeCompiler/issues/42#issuecomment-1356262276, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI565O2PMQNWUXO3JXIGPP3WNW473ANCNFSM6AAAAAAS5PGW6U . You are receiving this because you authored the thread.Message ID: @.***>

zakariamaaraki commented 1 year ago

Yes you can!

rahulkumarsingh73690 commented 1 year ago

How? I am using https://github.com/judge0/judge0 but the problem is file size

rahulkumarsingh73690 commented 1 year ago

is expectedOutput necessary to test the compiler?

zakariamaaraki commented 1 year ago

Yes expectedOutput is necessary, and input no.

zakariamaaraki commented 1 year ago

expectedOutput is used to return the verdict as a response

rahulkumarsingh73690 commented 1 year ago

Why? How i suppose to know output if i am running code in compiler

rahulkumarsingh73690 commented 1 year ago

I mean like this https://ide.judge0.com/

zakariamaaraki commented 1 year ago

This compiler was made for competitive programming, you can use it as an API. Imagine you want to create a platform for competitive programming where a user can submit his code, now how can you check that his code is correct? you can use this compiler just by sending the code written by the user and multiple test cases (inputs + expected outputs), and the memory limit and time limit that the code should not exceed :)

rahulkumarsingh73690 commented 1 year ago

Ohh sorry but is it possible to use this as a normal code compiler?

zakariamaaraki commented 1 year ago

No this is not the goal of this project :/