title: running my sample app using express.js and node.js
body: <pre><code>var sys = require("sys"),  
  my_http = require("http");  
  my_http.createServer(function(request,response){  
      sys.puts("I got kicked");  
      response.writeHeader(200, {"Content-Type": "text/plain"});  
      response.write("Hello World");  
      response.end();  
  }).listen(8080);  
  sys.puts("Server Running on 8080");
  </code></pre>
  
  <p>The above is <strong>my basic web-server</strong>, now i want to run my application which contains a HTML and a JS file. Where would i place those files so that i can access it through my port. </p>
  
  <p>I use <code>Apache and Xampp</code>, so i place my files in <code>htdocs</code> directory and access it via my browser, but in terms of <code>node.js</code> i am totally confused?.</p>