How can integrate compiler in my own online judge like a hacker rank, CodeChef, etc?

I am trying to create an online judge for my university so that the interest of my university students in programming increases. I have done a lot of work on this but now I face a problem. I am not getting any solution for how to judge my judge-submitted solution in real-time. Please help me in this matter.

1: enter image description here