title: Node, Angular Error: ENOENT: no such file or directory
body: <p>I have been following the <a href="https://scotch.io/tutorials/creating-a-single-page-todo-app-with-node-and-angular" rel="noreferrer">a scotch.io</a> tutorial to create my first node and angular app. I have seen that relative paths are a common issue online for the <code>Error: ENOENT: no such file or directory</code> which as far as I can tell is the same as the tutorial so I'm why its not working. </p>
  
  <p>The full error message is: 
  <code>Error: ENOENT: no such file or directory, stat'/Users/badman/githubRepos/travelGuide/app/public/index.html'
  at Error (native)</code></p>
  
  <p><a href="http://i.stack.imgur.com/ZlaBc.png" rel="noreferrer">My folder structure is here.</a>
  My server.js:</p>
  
  <pre><code>// set up web server
  var express = require('express');
  var app = express();
  var bodyParser = require("body-parser");
  
  // routes
  require('./app/routes.js')(app);
  
  // listen (start app with node server.js)
  app.listen(3000, function() {
    console.log("server going");
  })
  </code></pre>
  
  <p>routes.js:</p>
  
  <pre><code>module.exports = function (app) {
  
    app.get('*', function (req, res) {
        res.sendFile(__dirname + '/public/index.html'); // load the single view file (angular will handle the page changes on the front-end)
    });
  
  };
  </code></pre>
  
  <p>Any help is appreciated :)</p>