mxcube / mxcubeweb

MXCuBE-Web
http://mxcube.github.io/mxcubeweb/
GNU Lesser General Public License v3.0
20 stars 37 forks source link

Build the UI and bundle it in Python packages #1219

Open fabcor-maxiv opened 4 months ago

fabcor-maxiv commented 4 months ago

It could be helpful to have pre-built UI in Python packages for easier deployment. This should be investigated.

marcus-oscarsson commented 4 months ago

Thanks,

I guess we can build the front end in the CI pipeline and then use pkg_resources.resource_filename in someway to get the default path for flask, do you think that might work ?

fabcor-maxiv commented 4 months ago

Yes, that could work, in principle.

I would use importlib.resources rather than pkg_resources, but that is detail.

Does any facility do customisation of the UI?

marcus-oscarsson commented 4 months ago

The idea is that the all customization that is needed can be done through configuration files, the removal of the .env file was a last step in this process.

fabcor-maxiv commented 2 days ago

Not working on this right now, but it came to my mind anyway...

The idea would be to have the UI built in the wheels (and sdist), is that right? But does anyone install mxcubeweb directly from a wheel? Currently at MaxIV we don't, we install from a git checkout.