Search code examples
node.jsshellcompilation

an ONLINE COMPILE app using NODE.JS?


assume I want to do a online compile web app based on Node.js that:

  • User can upload his code (CPP for example)
  • The server compile it , and response the result (succeed or not)
  • User give some input for the program (STDIN)
  • The server run the program and response the result (STDOUT)

so it means

  • interacting with system, or say shell;
  • run programs on server, get the result;

which module(s) support these function?

Is there any example for this thing?


Solution

  • Such tool does exist.... CodePad

    Hope it will help as it did help me while practicing for c like interviews :>