I'm trying make a collaborative text editor using Sharejs but I'm running into some problems right at the outset.
I started with the "getting started" page. I ran npm install share
and then ran the example server using ./node_modules/share/bin/exampleserver
. This works fine.
However then I tried creating my own small application by following the steps in the "Running a server" section. I wrote the app.js file and the html that is suggested and when I tried running this, the browser console gives a 404 error saying it couldn't find socket.io.js:
GET http://localhost:8000/socket.io/socket.io.js 404 (Not Found)
and then I get this error repeatedly:
GET http://localhost:8000/test?VER=8&MODE=init&zx=ktil5643g6cw&t=1 404 (Not Found)
Does anybody have any suggestions or ideas what is causing this? I know that it can work because the preconfigured example works great locally as I mentioned previously, it's just that I must not be configuring something right when I'm trying to create a new app.
Thanks.
I the changelog you can see following:
becomes
Example still contains outdated callback
function(doc, error)
. Besides, change URL on the client to http://example.com:8000/channel.In my case final version is:
SERVER
CLIENT