title: nodejs/express include local js file
body: <p>Here is my current folder structure</p>
  
  <pre><code>css
     app.css
  js
    app.js
  node-modules
  index.html
  node-server.js
  package.json
  </code></pre>
  
  <p>The node-server is hosting <code>index.html</code>, but I can't figure out how to get the <code>app.js</code> and <code>app.css</code> files to get loaded.</p>
  
  <p><code>index.html</code> loads them with:</p>
  
  <pre><code>&lt;script src="js/app.js"&gt;&lt;/script&gt;
  &lt;link rel="stylesheet" type="text/css" href="css/app.css"/&gt;
  </code></pre>
  
  <p>Here is the error message:</p>
  
  <pre><code>Failed to load resource: the server responded with a status of 404 (Not Found)
  2http://localhost:3000/css/app.css Failed to load resource: the server 
  responded with a status of 404 (Not Found)
  </code></pre>
  
  <p>I know i need to require or load module or something, just can't figure out what.</p>
  
  <p>Thanks</p>