node.js - Running UI5 on Node JS server -


i'm trying run ui5 pages on node.js server. i've done till created ui5 project simple index.html file calling other ui5 views showing text message. when run without node js runs fine , shows me message.

what i'm trying achieve run on top of node server. i've configured server.js file node , starts fine. in there i'm calling above index.html file. calls fine gives error inside saying sap undefined meaning not able find ui5 resources sap-ui-core.js , error. i'm not sure why not able find it.

i've created ui5 project using eclipse provides me ui5 resources under below directory if try put resources directory under web content directory not able find it.

enter image description here

after manually putting resources directory:

enter image description here

below how index.html looks like:

enter image description here

has got resource root define or please if can suggest how can working.

awaiting responses eagerly.

thanks, aw

adding cschuff response:

hello, taking time me out. yes apps namespace different , not sap.ui. though i've got way around of getting work still work cleaner. way i've got working creating seperate node project altogether , gradually adding ui5 pieces , gods grace running fine now. i'm not sure why same concept if apply on ui5 project created in eclipse, gives me sap undefined error.

enter image description here

my suggestion misconfigured node.js server. try start scratch:

mkdir app cd app npm install -g express-generator express -f npm install node .\bin\www 

than put of files of project , resource in public directory. , try open http://localhost:3000/index.html


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -