INTO-CPS-Association / DTaaS

:factory: :left_right_arrow: :busts_in_silhouette: Digital Twin as a Service
https://into-cps-association.github.io/DTaaS/
Other
114 stars 57 forks source link

Create npm package for react website #477

Closed prasadtalasila closed 9 months ago

prasadtalasila commented 9 months ago

The current code base of client/ builds a static website from react single page application code. The yarn start of client simply uses serve npm package to serve satic website.

The goal is to build an npm package for react website so that it can be reused in the installation scripts. The target is something similar to libms. The current env.js is to be provided as a flag to the npm package.

The Nest.js framework has static file server package. This is to be used for serving the react build folder.

prasadtalasila commented 9 months ago

@nichlaes please provide your thoughts on this issue. Thanks.

prasadtalasila commented 9 months ago

This issue seems somewhat overlapping with the docker containers of client. If a docker container is available, multiple instances of it can be launched at multiple ports. Do we really need to work on this issue?

prasadtalasila commented 9 months ago

docker image is a more comfortable way to complete this task.