title: transferring node app to server
body: <p>I have a node server file, <code>app.js</code> which uses <code>express</code>.</p>
  
  <p>The file looks like this</p>
  
  <pre><code>var express = require('express')
  var app = express();
  app.use(express.static(__dirname + '/public'))
  
  app.get('/', function (req, res) {
    res.send('Hello World!')
  })
  
  app.listen(3000, function () {
    console.log('Example app listening on port 3000!')
  });
  </code></pre>
  
  <p>If I run <code>$ node app.js</code> from my terminal it launches and if I navigate to <code>localhost:3000</code> on my machine I see <code>Hello World!</code>. </p>
  
  <p>I have uploaded the file to a server and try and navigate to the <code>index.html</code>  file , which is in the <code>public</code> folder, however it doesn't work. </p>
  
  <p>Maybe I am missing many steps, but can anyone advise how I can launch the <code>node</code> app on my server?</p>