mizzao / meteor-sharejs

Meteor smart package for transparently adding ShareJS editors to an app
MIT License
225 stars 53 forks source link

Simplest example not working for me #54

Closed bluepuma77 closed 9 years ago

bluepuma77 commented 9 years ago

I am trying to get meteor-sharejs to work in the most basic example:

export LC_ALL=C   #for mongodb
curl https://install.meteor.com/ | sh
meteor create share
cd share
meteor add mizzao:sharejs
vi share.html   #replace '{{> hello}}' with '{{> sharejsText docid=docid id="editor"}}'
sudo meteor --port 3333

And all I get is this lousy 'Loading': loading

I tried Meteor on Mac OS X and Ubuntu (in Docker with dedicated port), with Firefox, Chrome and Safari.

What should I change to get this basic example up and running correctly?

mizzao commented 9 years ago

docid is not going to be defined in that helper.

Sorry, but GitHub issues are not meant to be a support forum. Please understand how the demo works first and then build your app based on that.

bluepuma77 commented 9 years ago

Hi @mizzao, thanks for your support.

I think this issue has been raised by others before. To me it seems the main reason is that the README implies that the steps mentioned above is all you need to get a demo working. So maybe add to the README, that the steps do not create a working demo but that people need to look into the demo files instead.

Usage
No configuration necessary for anonymous document editing
Use this helper on the client to get a textarea 
{{> sharejsText docid=docid id="editor"}}
Server Configuration
See this example config file for the various settings that you CAN [not must] use
Persistence
By default, the documents and edit operations will be persisted
bluepuma77 commented 9 years ago

Maybe a plain Javascript (no coffeescript) demo with a single textarea (no full-blown application) could help jump-start new developers with 'meteor-sharejs'.

mizzao commented 9 years ago

This package is basically a band-aid to get over to full operational transformation with Meteor. As mentioned in #50 the ideal method would be ShareJS 0.7 with QuillJS. So it's not worth spending too much time on.