make the app mountable#345
Conversation
|
actually, i would like to make it like that: how do you think about that api? we could make all the routes editable in the settings |
|
This is really interesting. I hope it gets done actually. Basically for someone using express, and monogdb there has to be a system to replace etherpad-lite's database with redis or something and then periodically update a document in mongodb. That would be the most ideal and easiest way to integrate etherpad-lite. Otherwise it's very restrictive with little documentation on api to introduce it seamlessly into other apps. |
|
@cweider sorry there is lots of noise in this patches, they are not meant to be merged - its all about the idea/api :D @ronquil yes it would be cool to have an option to mount ep-lite into another app i will try to make a better patch next weekend thanks for response |
|
@guybrush if you can make ep-lite mountable with redis (realtime database) and some other persistant database (mongodb, postgresql) in express that would be amazing. I would do almost anything to push this approach. However I feel that it might involve a major rewrite of how ep-lite works as a standalone now. Anyways keep us posted on your progress! :D |
We should do this step by step. One monster pull request is going to fail... |
|
@booo I like your approach. It keeps the implementation very distinct and clear especially when using it within an existing express app. |
|
We're have a different aproach to solve the problem. The plugin system that gets created at the moment allows you to extend the express server. We should go down this road. Thx anyway |
this is not meant to be merged yet, it is an approach to make the etherpad-lite-app mountable into other express-apps.
right now it feels SUPER-hacky - but works
with the current patch, one can mount the etherpad like that:
basepathpassed to thehelpExpressmust match the route where you mount the etherpad (/padin my example)anyway - this is how i use etherpad-light right now, would love to hear what you are thinking about it