title: node server.js - Cannot GET /
body: <p>I am currently working on a project which is a webpage using angular to dynamically change DOM elements. Within the project is a public folder which contains all HTML, CSS, JavaScript and JSON objects. The project must be distributed so I am using node to run from localhost. This is my server.js code: </p>
  
  <pre><code>var express = require('express');
  var app = express();
  var path = require('path');
  
  app.get('/', function(req,res){
     res.sendFile(path.join(__dirname + '/public')); 
  });
  
  app.listen(8080, function(){
      console.log((new Date()) + " Server is listening on port 8080");
  });   
  </code></pre>
  
  <p>When I head to localhost:8080 it just says Cannot GET /. Where am I going wrong?</p>