title: Integrating node js into cordova mobile application (Connecting the mobile app to the server)
body: <p>I am working on a mobile web application(hybrid app) project built with Cordova, Jquery Mobile and AngularJS. The front end pages are already finished. My problem now lies on connecting the app to the server (i'm planning to use Node.JS/Express by the way).</p>
  
  <p>My keypoints of confusion are these : </p>
  
  <ol>
  <li>How do i structure my application? Do i place my node js files inside my cordova app directory? So currently, this is my cordova application's directory. Do i just place the node js files on the root directory?</li>
  </ol>
  
  <p>Mobile App Directory</p>
  
  <pre><code>-www
  -hooks
  -platform
  -plugins
  -config.xml
  -server (Do i place the node js files here perhaps?)
  </code></pre>
  
  <ol start="2">
  <li>Assuming,that i've already integrated node, when i run the application in my mobile phone, will node still run? Or how do i run the server? Do you have any advice? This is the part where i get total blackness. Because i have no idea. I have read of having to host node in a server, but please help on at least the basic thing i should do. </li>
  </ol>
  
  <p>If you could give me some existing examples, where in they used node as a back end, that would also be great. Thank you so much. </p>