Skip to content
This repository

Multiplayer SocialCalc with WebSocket - Also see https://github.com/audreyt/ethercalc

branch: master

Merge remote-tracking branch 'origin/master'

Conflicts:
	dotcloud.yml
latest commit a75db5f28f
唐鳳 authored September 30, 2011
Octocat-spinner-32 cpan * Add ContentLength middleware, and make a requirements.txt in prepar… July 26, 2011
Octocat-spinner-32 docs * Various small fixes; replacing the doc pdf with a link. November 19, 2009
Octocat-spinner-32 images Merge commit 'dbrick/master' July 07, 2010
Octocat-spinner-32 third-party * Add PocketIO/lib to third-party/lib/ and remove the redundant web-s… June 26, 2011
Octocat-spinner-32 Changes.txt Upgraded to Tracy's drag palette images and their radii, July 05, 2010
Octocat-spinner-32 LEGAL.txt Added text subtype "tr" (text rich) to formula1.js and socialcalc3.js October 21, 2009
Octocat-spinner-32 LICENSE.txt Added text subtype "tr" (text rich) to formula1.js and socialcalc3.js October 21, 2009
Octocat-spinner-32 Makefile.PL * Add dotcloud integration. August 20, 2011
Octocat-spinner-32 README Merge remote-tracking branch 'origin/master' September 30, 2011
Octocat-spinner-32 SocialCalcServersideUtilities.pm * Fix typo: In datatype, use "v" for numeric value, not "n". December 13, 2010
Octocat-spinner-32 TODO
Octocat-spinner-32 app.psgi * Add ContentLength middleware, and make a requirements.txt in prepar… July 26, 2011
Octocat-spinner-32 dotcloud.yml * Add stand-alone Fliggy server for dotClout thanks to @miyagawa++ August 27, 2011
Octocat-spinner-32 formatnumber2.js Major additions (see Changes.txt for specifics and bug fixes): May 13, 2010
Octocat-spinner-32 formula1.js * Establish baseline before merging from dbrick. October 22, 2009
Octocat-spinner-32 index.css * Add support for image and wafls October 22, 2009
Octocat-spinner-32 index.mt * Switch from Web::Hippie to PocketIO. June 26, 2011
Octocat-spinner-32 multiserver.pl
Octocat-spinner-32 nginx.conf * Add stand-alone Fliggy server for dotClout thanks to @miyagawa++ August 27, 2011
Octocat-spinner-32 player.js * Switch from Web::Hippie to PocketIO. June 26, 2011
Octocat-spinner-32 postinstall * Add stand-alone Fliggy server for dotClout thanks to @miyagawa++ August 27, 2011
Octocat-spinner-32 requirements.txt * Add ContentLength middleware, and make a requirements.txt in prepar… July 26, 2011
Octocat-spinner-32 simpleedit14.pl Initial commit February 23, 2009
Octocat-spinner-32 simpleedit15.pl Changed dragging vertical thumb to display part of each proposed new … June 02, 2009
Octocat-spinner-32 socialcalc-3.js * Fix a simple typo that renders non-numeric cells as numeric. August 30, 2011
Octocat-spinner-32 socialcalc.css * Add note on CSS-based combination of multiple inset shadows. December 13, 2010
Octocat-spinner-32 socialcalc2demo-0-8-1.html Moved sum button into socialcalcspreadsheetcontrol.js, made OLPC vers… June 02, 2009
Octocat-spinner-32 socialcalc2demo10.html Added socialcalc2demo10.html. Upgraded socialcalcserver.pl to have in… March 10, 2009
Octocat-spinner-32 socialcalcconstants.js Upgraded to Tracy's drag palette images and their radii, July 05, 2010
Octocat-spinner-32 socialcalcpopup.js * Remove ST-specific dialog code. October 22, 2009
Octocat-spinner-32 socialcalcserver.pl Major additions (see Changes.txt for specifics and bug fixes): May 13, 2010
Octocat-spinner-32 socialcalcspreadsheetcontrol.js Major additions (see Changes.txt for specifics and bug fixes): May 13, 2010
Octocat-spinner-32 socialcalctableeditor.js * Fix {bz: 4953}: Chrome wants "window.focus=true" instead of "window… February 12, 2011
Octocat-spinner-32 socialcalcviewer.js Upgraded to Tracy's drag palette images and their radii, July 05, 2010
Octocat-spinner-32 socketpolicy.pl * Add socketpolicy.pl and include web-socket-js so legacy browsers work. July 08, 2010
Octocat-spinner-32 ssctrltest1.html * Add support for localStorage for ssctrltest1.html. October 22, 2009
README
                                -=[Multiplayer Socialcalc]=-

  >> See https://github.com/audreyt/socialcalc/wiki for a book chapter on this project! <<

                            .oO( Advertisement for EtherCalc )Oo.

    Please note that this repository hosts a proof-of-concept that provides
    no capability to save/load spreadsheetgs.

    However, a Node.js port with Redis storage backend is now available at:

        https://github.com/audreyt/ethercalc

    There are now two public playgrounds for experimenting EtherCalc:

        http://ethercalc.org/
        http://ethercalc.no.de/

    Please feel free to take a look at it too!

                                .oO( Setup Instructions )Oo.

0. Install JSON, Fliggy, Protocol::WebSocket and Try::Tiny:

    sudo cpan
    cpan> notest install JSON Fliggy Protocol::WebSocket Try::Tiny

1. Then check out this project and run the stand-alone server:

    git clone git://github.com/audreyt/socialcalc.git

    cd socialcalc
    perl multiserver.pl

2. Open port 9999 in multiple browsers with WebSocket support.

3. See red triangles representing peer cursors.
   Type in a browser, appears in all others!

Browsers currently tested:
    Native WebSocket: Safari 5, Chrome 5, Firefox 4 beta1.
    Flash emulation: Firefox 3, Opera 10.

Share & Enjoy!
Audrey
Something went wrong with that request. Please try again.