icstechsales / dql-explorer

Other
9 stars 14 forks source link

What about using Webcontent instead of file resources? #5

Open zeromancer1972 opened 5 years ago

zeromancer1972 commented 5 years ago

The build process then also could copy all the stuff in Webcontent folder of the ODP. Dealing with file resources in an NSF and renaming everything is quite a hassle...

dprosper commented 5 years ago

I have to admit that use of ODP and Webcontent is something I have not done at this stage. I was going to dig into it over the weekend, but it sounds like you have done it before. Can you share an example of the process or database, if the combination of ODP and Webcontent allows to remove some of the frictions and can work with GitHub I am all in. But could use some help in setting it up.

zeromancer1972 commented 5 years ago

Sure, no prob. In this sample https://github.com/zeromancer1972/DataTables I use almost everything from inside the Webcontent folder (Javascript plugins, css). This means I reference it on the XPages but you could also reference it like you do with the React app because the paths are the same (reference to db.nsf/style/some.css is identical for file resources and Webcontent relative paths). This is what I meant: as your build script places the files already in folders you can just grab the whole folder and copy it to Webcontent - and the relative path from the NSF is still the same. ODP of course is something that I can't explain in this small comment section though. I took some notes a while ago: https://oliverbusse.notesx.net/hp.nsf/blogpost.xsp?documentId=CDA