Skip to content

A Real-time Docker-based sandbox environment to run a code snippet made using Node.js, Express.js, React.js, and Socket.io.

Notifications You must be signed in to change notification settings

samarth5611/Remote-Code-Executer-Realtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Remote-Code-Executor-Realtime

Remote-Code-Executor-Realtime so called RCE, as the name suggests Is a Docker-based sandbox environment to run a code snippet. It will create a new docker based container for every submitted code, run it in the isolated container, and return the output. It will support major languages C, C++, and can be extended to other language support too.

How does it work ?

The client side app submits the code and language id to the server through the API. The API then spins up a Docker container for each API request and runs the code using the compiler/interpreter of given language. The program runs inside a virtaul machine with limited resources and has a time limit for execution. Once the output is ready, it is sent back to the client as response and docker container is destroyed with all the files from the server.

Features

  • Backend APIs and logic to handle the submitted code, create a docker container, execute it, and return the results.
  • Real-time Screen sharing implemented using Web-Sockets.
  • User can join in Room, and start Coding. There is no SignIn and SignUp options for simplicity.
  • Timeouts have been defined so that no code takes up too much of the server's time

Tech stack

  • Node.js
  • Express.js
  • Mongodb
  • Mongoose
  • SocketIO
  • React
  • Bash
  • Docker

Snapshots

  • Homepage

  • Joined Notification when other user joined the coding Room

  • Leaved Notification when other user Leave the coding Room

  • Main Interface

About Me

I'm Samartha,an undergraduate student studying Computer Science at IIIT, Gwalior with an Active interest in Competitive Programming and building Web Apps(MERN stack). Do checkout my portfolio and connect with me on LinkedIn.

Connect with me :

gmail linkedin portfolio

About

A Real-time Docker-based sandbox environment to run a code snippet made using Node.js, Express.js, React.js, and Socket.io.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published