trame icon indicating copy to clipboard operation
trame copied to clipboard

Will trame consider front-end and back-end separation in future development?

Open supriome opened this issue 3 years ago • 2 comments

The trame backend is now developed in python, while the front-end vue code is defined together in a python project.

For modern web development, flexibility and extensibility are necessary. In the case that vtk.js does not support all C++ functions and also does not support unstructured grid, separating trame front-end and back-end is the most convenient and perfect solution.

So I'm looking forward to the version that trame separates code of client and server.

supriome avatar Jun 27 '22 08:06 supriome

That is already the case. We are just missing the automation of the publication of the client side components. In the meantime, you can get trame-client and build the core components for you to use within your client side code base.

jourdain avatar Jun 29 '22 09:06 jourdain

Action items

  • [ ] Publish from CI vue components to npm

jourdain avatar Jun 29 '22 09:06 jourdain

I have the same request. It's strange to write frontend code in python which cannot benefit the development experience from the frontend ecosystem. vtk.js seems to be a much better choice but lacks support for features like unstructured grid.

kingyue737 avatar Mar 05 '24 07:03 kingyue737

It all depend on what you aim to do. If you want to create a browser only app, then trame is not a good choice. What is your intent of using the trame on the client in a separated fashion from its server?

BTW, vtk3d does support unstructured grid and can be driven fully locally.

jourdain avatar Mar 05 '24 18:03 jourdain

Can trame be used to build platform service applications with separate front-end and back-end? I want to create a browser app with vue as the frontend. I firstly try the glance ,but vtk.js lacks support for features like unstructured grid. Are there any recommended libraries or methods that can be used to display unstructured grids on the browser in front-end and back-end separation projects?

chiyandetaotie avatar Mar 11 '24 05:03 chiyandetaotie

vtk3d let you use VTK/wasm on the client side.

jourdain avatar Mar 11 '24 17:03 jourdain

vtk3d, is it a function library? Is it the vtk3d ? Can you provide a reference link?

chiyandetaotie avatar Mar 12 '24 01:03 chiyandetaotie

Yes but technically that package. But you can also build your own WASM library using VTK as well.

jourdain avatar Mar 12 '24 02:03 jourdain

How can I use the package "@dicehub/vtk3d" to implement post-processing functions in the front-end? Is there any examples ?

chiyandetaotie avatar Mar 12 '24 03:03 chiyandetaotie

You should contact @dicehub for more information, otherwise the trame-vtk3d provides some examples that you can expand. At that point it is outside of trame and Kitware support.

jourdain avatar Mar 12 '24 03:03 jourdain

I'm closing this as I don't see the benefit of having an NPM package of the trame-client anymore. If needed, I recommend grabbing any useful vue.js code in your web project.

jourdain avatar Mar 13 '24 16:03 jourdain