Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
supriome opened this issue Jun 27, 2022 · 11 comments
Closed

Comments

@supriome
Copy link

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.

@jourdain
Copy link
Collaborator

jourdain commented Jun 29, 2022

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
Copy link
Collaborator

Action items

  • Publish from CI vue components to npm

@kingyue737
Copy link

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.

@jourdain
Copy link
Collaborator

jourdain commented Mar 5, 2024

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.

@chiyandetaotie
Copy link

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?

@jourdain
Copy link
Collaborator

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

@chiyandetaotie
Copy link

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

@jourdain
Copy link
Collaborator

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

@chiyandetaotie
Copy link

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

@jourdain
Copy link
Collaborator

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants