|Integrating Sprotty-server into existing Spring application? [message #1830911]
||Thu, 06 August 2020 13:55
| Jonas Sorgalla
Registered: September 2015
Location: Dortmund, Germany
Hi folks, |
first of all thank you so much for your awesome work. I recently came accross the use case to visualize a model for the web browser and Sprotty seems to be a perfect fit. I already had nightmares of half-heartedly coded custom spaghetti java script code :D
However, I am not sure how to integrate Sprotty in the best possible way. I already have a Spring backend written in Kotlin which (among other things) holds several EMF-based models (plain emf, sry no xtext :/). My first thought was to simply expose the models and underlying ecore using a REST interface, consume everything in a separate node.js frontend relying on the Sprotty client and, thus, achieve a nice decoupled visual representation accessible with a browser. But, while running the Sprotty client examples and doing some reading, I stumbled upon the Sprotty server and corresponding (Theia-Xtext-Sprotty example). Now I am a little bit puzzled...
The possibility to the computational heavy lifting on the server side seems appealing, meaning I guess I should integrate the sprotty server and ELK somehow in the existing Kotlin backend? Is there a tutorial which exemplifies this? Or did I got it all wrong and the Sprotty server should be run separately? Or should I stick solemnly to the Sprotty client?
Would be awesome to get some pointers :)!
Powered by FUDForum
. Page generated in 0.02807 seconds