Dspace 7 angular on production

83 views
Skip to first unread message

Adrien Quentin

unread,
Jun 28, 2023, 7:17:01 AM6/28/23
to DSpace Technical Support
Hello,
I would like to know if the dspace angular UI could be served by simple http server ( as nginx or apache http). As the angular is compiled, why node is needed ? 

Thanks for your help.
Regars.

Mark H. Wood

unread,
Jun 28, 2023, 9:39:53 AM6/28/23
to dspac...@googlegroups.com
On Wed, Jun 28, 2023 at 01:54:31AM -0700, Adrien Quentin wrote:
> I would like to know if the dspace angular UI could be served by simple
> http server ( as nginx or apache http). As the angular is compiled, why
> node is needed ?

The TypeScript code is "compiled" to Javascript. It needs a
Javascript engine to execute. Node wraps some useful features around
the V8 Javascript engine.

Yes, for a browser session the code is all sent to the browser and
executes there. But to support search engines, dspace-angular also
needs to be able to render pages itself.

--
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu
signature.asc

Adrien Quentin

unread,
Jun 28, 2023, 12:56:09 PM6/28/23
to DSpace Technical Support
Thank you Mark for your anwer.

Kind Regards

Adrien Quentin

unread,
Jun 30, 2023, 6:05:40 AM6/30/23
to DSpace Technical Support
After some testing, I'm able to run gui using simple nginx, by fill handly config.json. Features seems to work except the page reload that request nodeserver/reload, misfortune.
Is there any plan to have the gui running on simple http server ?

Thank you 
Kind Regards

Le mercredi 28 juin 2023 à 15:39:53 UTC+2, Mark H. Wood a écrit :

DSpace Technical Support

unread,
Jul 5, 2023, 1:58:22 PM7/5/23
to DSpace Technical Support
Hi,

No, at this point there are no plans to support running the UI on a simple HTTP server.   Doing so would require running the UI as a "client side application" ONLY, which would impact SEO (search engine optimization), especially in Google Scholar.  At this time, Google Scholar relies on the "server side rendering" of the UI, which requires running the UI using Node.js.  It's not possible to perform "server side rendering" if you run the UI via a simple HTTP server.  For more info, see https://wiki.lyrasis.org/display/DSDOC7x/Search+Engine+Optimization

Tim

Reply all
Reply to author
Forward
0 new messages