title: How do you run WebGL & JavaScript at server-side?
body: <p>I am currently working on a Three.js based WebGL project and I need to get a screenshot of a given model quickly when needed.</p>
  
  <p>I have implemented some JavaScript code that will render a 3D model then return a picture of it. But the problem is that the JavaScript code runs at client side, but I need it to make it server-side, so I can get the picture by a URL (such as example.com/get-screenshot.php?id=2) and serve it to my users.</p>
  
  <p>I am wondering if there is a mechanism that will automatically trigger the job and return what I need. Besides the server that hosts my site, which is Azure website, I also have access to an Azure virtual machine with Windows Server or Ubuntu Server installed; I don't know if it helps. </p>
  
  <p>Thanks in advance.</p>