GithubHelp home page GithubHelp logo

bhanditz / togetherjs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlearchive/togetherjs

0.0 2.0 0.0 22.1 MB

A service for your website that makes it surprisingly easy to collaborate in real-time.

Home Page: https://togetherjs.com

License: Mozilla Public License 2.0

JavaScript 73.99% HTML 9.47% CSS 16.29% Shell 0.09% Python 0.16%

togetherjs's Introduction

TogetherJS + Firebase

TogetherJS is a service for your website that makes it surprisingly easy to collaborate in real-time. Learn more at the original Github repository.

This repository lets you use Firebase as the backend for your TogetherJS sessions.

Try it out!

Benefits

There are two benefits to using Firebase with TogetherJS:

  • Persistence - Sessions are automatically persisted, which allows for easy replay of sessions (cursor movements, chat history, etc) if required. Note this is not enabled by default, see the comment on line 240 in channel.js to enable.

  • Scalability - Firebase is a robust service and is built to automatically scale with your usage.

Usage

Include the modified version of TogetherJS along with Firebase. You may also (optionally) set the HUB URL to your own Firebase:

<script>
  TowTruckConfig_hubBase = "https://<my-firebase>.firebaseio.com/";
</script>
<script src="https://cdn.firebase.com/v0/firebase.js"></script>
<script src="http://firebase.github.io/togetherjs/togetherjs.js"></script>

Then use TogetherJS as you normally would:

<button onclick="TowTruck(this); return false;">Start TowTruck</button>

If you want to build your own version of the JavaScript libraries, don't forget to set HUB_URL to a valid Firebase URL (https://together.firebaseio-demo.com by default) while running grunt. For example:

HUB_URL="https://<your-firebase>.firebaseio.com/" grunt --base-url="/togetherjs" devwatch

togetherjs's People

Contributors

ianb avatar aarondruck avatar josephg avatar toolness avatar simonwex avatar nornagon avatar pomax avatar micmarsh avatar wmertens avatar mcolyer avatar cscott avatar anantn avatar jamestamplin avatar my8bird avatar espadrine avatar zamfi avatar rburns avatar max-mapper avatar dgreisen avatar collin avatar crypticswarm avatar dcolens avatar daredevildave avatar henryoswald avatar davidascher avatar wking avatar yornaath avatar thegoleffect avatar mattmonson avatar woloski avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.