简体   繁体   English

像jsFiddle或开发人员工具这样的实时编辑,但是要在服务器上进行?

[英]Live editing like jsFiddle or developer tools but to the server?

I would like to implement a jsFiddle-like site but where others can see the changes being made to the page in real time. 我想实现一个类似于jsFiddle的网站,但其他人可以在其中实时看到对该页面所做的更改。

What would be the best way to do this? 最好的方法是什么? If possible. 如果可能的话。 I am doubtful I can get the changes made in things like web developer tools build into chrome for example and send them to the server and update the page with like socket.io. 我怀疑我能否在Web开发人员工具中将所做的更改内置到chrome中,例如将其发送到服务器并使用socket.io之类更新页面。 But is there any other open source service I could use to achieve this you know about? 但是,您是否可以使用其他任何开源服务来实现这一目标?

Any tips would be awesome. 任何提示都会很棒。

Codepen.io is like JSFiddle, and has a collaborative "Pro" version for $9/month or $75/year. Codepen.io类似于JSFiddle,并具有协作的“ Pro”版本,每月9美元,每年75美元。 Check it out: http://codepen.io/pro/ 签出: http : //codepen.io/pro/

The only other thing that comes to mind is http://beta.etherpad.org/ -- but it's just live collaboration for text editing. 我想到的唯一另一件事是http://beta.etherpad.org/ ,但这只是文本编辑的实时协作。 Not really like jsFiddle. 不太喜欢jsFiddle。

I don't think there is a serverside version like jsfiddle. 我认为没有像jsfiddle这样的服务器端版本。 For example you could write evil code that make damage to the service provider. 例如,您可能编写邪恶的代码,从而损坏服务提供商。 I just imagine execute ddos attacks to others domain, writing infinty loops, load heavy stuff to the memory and so on. 我只是想象对其他域执行ddos攻击,编写无限循环,将大量内容加载到内存等。

But I still think it would be possible to create something own in a "trusted enviroment". 但是我仍然认为在“受信任的环境”中创建自己的东西是可能的。

One of my colleague have tried this one: http://coderun.com/ but I dont know if there is some limitation that block the things that I talked about in the begining. 我的一位同事曾尝试过这种方法: http : //coderun.com/,但我不知道是否有某些限制会阻碍我一开始所谈论的事情。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM