How can I serve my web app with Node/Express?
<p>I'm probably going to ask a huge noob question, one of the worst I've ever had asked here, but I'm lost as hell with Node/Express. I've only used Apache servers (typical WAMP/XAMP for testing purposes), so I have absolutely no idea on what I have to do to serve my web app.</p>

<p>My folder tree is the following:</p>

<ul>
<li>www

<ul>
<li>nodeserver.js</li>
<li>(more things)</li>
<li>Liteconomy (my web app)

<ul>
<li>js</li>
<li>css</li>
<li>plugins</li>
<li>templates</li>
<li>index.html</li>
<li>sublime_project</li>
</ul></li>
</ul></li>
</ul>

<p>Pretty typical, huh? Well, I've been searching how to serve this app with a simple access like localhost:8080/Liteconomy, or localhost:8080/Liteconomy.html. After that, my angular routing would do the rest, but I just can't serve the app.</p>

<p>I've got this written in nodeserver.js:</p>

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

app.get('/', function (req, res) {
  res.send('Hello World!');
});

app.listen(8080, function () {
  console.log('Example app listening on port 8080!');
});

app.get('/Liteconomy', function (req, res) {
  res.send('Liteconomy/index.html');
});
</code></pre>

<p>When I execute it and access to localhost:8080, I get the "Hello world", but when I go to localhost:8080/Liteconomy, I get the following plain text: "Liteconomy/index.html". If I try to access to the index resource directly, I get a "Cannot GET /Liteconomy/index.html" error.</p>

<p>I also tried using the static thingy, but didn't work either. </p>

<p>What am I doing wrong here? I guess I'm just missing something very important.</p>