what is wrong with this AngularJs code- in browser code editor- Nodejs
<p>Hi am trying to create in browser code editor for free knowledge sharing for high school students from basic level. after long struggle with search i got <a href="https://github.com/scriptnull/compilex" rel="nofollow">this</a> link. i just did some setup and changes as per guidance available in that link.</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>var express = require('express');
var path = require('path');
var app = express();
var bodyParser = require('body-parser');
//app.use(bodyParser.urlencoded());

app.use(bodyParser.urlencoded({
  extended: true
}));


//compileX
var compiler = require('compilex');
var option = {stats : true};
compiler.init(option);

app.get('/' , function (req , res ) {

 res.sendfile( __dirname + "/index.html");

});


//app.post('/compilecode' , function (req , res ) {
app.post('/' , function (req , res ) {

    
 var code = req.body.code; 
 var input = req.body.input;
    var inputRadio = req.body.inputRadio;
    var lang = req.body.lang;
    if((lang === "C") || (lang === "C++"))
    {        
        if(inputRadio === "true")
        {    
         var envData = { OS : "windows" , cmd : "g++"};     
         compiler.compileCPPWithInput(envData , code ,input , function (data) {
          if(data.error)
          {
           res.send(data.error);      
          }
          else
          {
           res.send(data.output);
          }
         });
    }
    else
    {
     
     var envData = { OS : "windows" , cmd : "g++"};    
         compiler.compileCPP(envData , code , function (data) {
         if(data.error)
         {
          res.send(data.error);
         }     
         else
         {
          res.send(data.output);
         }
    
            });
    }
    }
    if(lang === "Java")
    {
        if(inputRadio === "true")
        {
            var envData = { OS : "windows" };     
            console.log(code);
            compiler.compileJavaWithInput( envData , code , function(data){
                res.send(data);
            });
        }
        else
        {
            var envData = { OS : "windows" };     
            console.log(code);
            compiler.compileJavaWithInput( envData , code , input ,  function(data){
                res.send(data);
            });

        }

    }
    if( lang === "Python")
    {
        if(inputRadio === "true")
        {
            var envData = { OS : "windows"};
            compiler.compilePythonWithInput(envData , code , input , function(data){
                res.send(data);
            });            
        }
        else
        {
            var envData = { OS : "windows"};
            compiler.compilePython(envData , code , function(data){
                res.send(data);
            });
        }
    }
    if( lang === "CS")
    {
        if(inputRadio === "true")
        {
            var envData = { OS : "windows"};
            compiler.compileCSWithInput(envData , code , input , function(data){
                res.send(data);
            });            
        }
        else
        {
            var envData = { OS : "windows"};
            compiler.compileCS(envData , code , function(data){
                res.send(data);
            });
        }

    }
    if( lang === "VB")
    {
        if(inputRadio === "true")
        {
            var envData = { OS : "windows"};
            compiler.compileVBWithInput(envData , code , input , function(data){
                res.send(data);
            });            
        }
        else
        {
            var envData = { OS : "windows"};
            compiler.compileVB(envData , code , function(data){
                res.send(data);
            });
        }

    }

});

app.get('/fullStat' , function(req , res ){
    compiler.fullStat(function(data){
        res.send(data);
    });
});

app.listen(8080);</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"&gt;&lt;/script&gt;
&lt;html&gt;
&lt;head&gt;
 &lt;title&gt;Compilex&lt;/title&gt;
 &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/PreloadJS/0.6.0/preloadjs.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;center&gt;

&lt;form id="myform" name="myform" method="post" action="/"&gt;
&lt;h3&gt;Your Code&lt;/h3&gt;
&lt;textarea rows="13" cols="100" id="code" name="code" &gt;&lt;/textarea&gt; 
&lt;br/&gt;
&lt;div&gt;
 &lt;input type="submit" value="submit"  name="submit" /&gt;
&lt;/div&gt;
&lt;div&gt;
 &lt;br/&gt;
Language : &lt;select name="lang"&gt;
  &lt;option value="C"&gt;C&lt;/option&gt;
  &lt;option value="C++"&gt;C++&lt;/option&gt;
  &lt;option value="Java"&gt;Java&lt;/option&gt;  
  &lt;option value="Python"&gt;Python&lt;/option&gt; 
  &lt;option value="CS"&gt;C#&lt;/option&gt;  
  &lt;option value="VB"&gt;VB&lt;/option&gt;  
&lt;/select&gt;
Compile With Input : 
&lt;input type="radio" name="inputRadio" id="inputRadio" value="true"/&gt;yes
&lt;input type="radio" name="inputRadio" id="inputRadio" value="false"/&gt;No
&lt;/div&gt;
&lt;h3&gt;Output&lt;/h3&gt;
&lt;textarea rows="10" cols="100" id="input" name="input" &gt;&lt;/textarea&gt; 

&lt;br /&gt;

&lt;/form&gt;
&lt;/center&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>
</div>
</div>
</p>

<p>Requirement:
1. how to compile the input for Python (how to configure with this app)
2. how to show the output in second textarea.</p>

<p>(note: spend lots of time with codemirror, ace editor examples and demo but couldn't use it efficiently as am new to this platform)</p>

<p>helps much appreciated </p>

<p>Thank you</p>