Node.js throwing cannot GET / with express
<p>I am starting to learn node.js and I am using express.</p>

<p>My project structure is :</p>

<pre><code>---CardDemo
-----view
-------index.html
-----server
-------controller
---------indexController.js
-------app.js
</code></pre>

<p>Now the codes :</p>

<p>indexController.js:</p>

<pre><code>var mongoose = require('mongoose');
var app = require('../server/app');

app.get('/', function(req, resp){
    resp.sendFile('../view/index.html');
});
</code></pre>

<p>app.js:</p>

<pre><code>var express = require('express');

var app = express();
var port = 8000;


app.listen(port, function(error, response){
    if (error){
        console.log("Failed to run server!");
    }
});


module.exports = app;
</code></pre>

<p>When I am doing <code>localhost:8000/</code> I am getting :</p>

<pre><code>Cannot GET /
</code></pre>

<p>What is going wrong ?</p>