title: Running UI5 on Node JS server
body: <p>I'm trying to run my ui5 pages on Node.js server. What I've done till now is created a UI5 project with a simple index.html file calling my other ui5 views showing a text message. When I run it without node js it runs fine and shows me the message.</p>
  
  <p>What I'm trying to achieve now is run this on top of my node server. So I've configured a server.js file for my node and it starts up fine. In there I'm calling up my above index.html file. it calls it fine but it gives an error inside it saying sap is undefined meaning it is not able to find my ui5 resources like sap-ui-core.js and thus the error. I'm not sure why it is not able to find it.</p>
  
  <p>I've created the ui5 project using eclipse which provides me the ui5 resources under the below directory but even if I try to put the resources directory under the web content directory it is not able to find it.</p>
  
  <p><img src="https://i.stack.imgur.com/prRJd.png" alt="enter image description here"></p>
  
  <p>After manually putting resources directory:</p>
  
  <p><img src="https://i.stack.imgur.com/iIs3I.png" alt="enter image description here"></p>
  
  <p>Below is how my index.html looks like:</p>
  
  <p><img src="https://i.stack.imgur.com/5CKlU.png" alt="enter image description here"></p>
  
  <p>Has it got something to do with the resource root that I define or please if you can suggest how can I get it working.</p>
  
  <p>Awaiting your responses eagerly.</p>
  
  <p>Thanks,
  AW</p>
  
  <p>Adding to cschuff response:</p>
  
  <p>Hello, thanks for taking time to help me out. Yes my apps namespace is different and definitely not something with sap.ui. Though I've got a way around of getting it to work but still would like to get this to work as well as it is much cleaner. The way I've got it working now is by creating a seperate node project altogether and then gradually adding my UI5 pieces to it and by gods grace it is running fine now. But I'm not sure why the same concept if I apply on a UI5 project created in eclipse, it gives me sap is undefined error.</p>
  
  <p><img src="https://i.stack.imgur.com/TSqqO.png" alt="enter image description here"></p>