title: Node.js: Getting code to run client side
body: <p>I'm working on an app and I am trying to use Node.js to build it. Essentially, the idea is to get Node to launch and kill some processes. I run the server like this:  </p>
  
  <pre><code>http.createServer(function (req, res) 
  {
      res.writeHead(200, {'Content-Type': 'text/plain'});
      res.end('Hello World\n');
  
      console.log('platform is: ');
      console.log(process.platform);
  
      if (queryObject.launch == "yes")
      {
          fun();
      }
  }).listen(1337, '0.0.0.0');
  </code></pre>
  
  <p>In the example above, when I use the browser on the same machine that hosts the server (a Windows Machine), I get 'win32', fine. However, when I access the server from a browser on Linux VM, I still get 'win32'. This tells me that the code is still running server side. Is there any way to get it to run client side?</p>