Quick Start

Example 1: Fork existing room with Bebo SDK

Goal:

Fork and launch ‘chat’ room on Bebo, a basic messaging experience like iMessage or Slack:
  1. Fork the ‘chat’ room at https://github.com/bebo-rooms/chat to your own https://github.com/<your-username>/<new-room-name> repo
  2. $ git clone git@github.com:<your-username>/<room-name>.git to clone your fork to your local machine
  3. Follow its README.md instructions. They will look like npm setup npm install etc.
  4. $ git checkout -b gh-pages to create and switch to a new gh-pages branch
  5. $ git push origin gh-pages to tell GitHub to host your code at https://<your-username>.github.io/<room-name>
  6. Verify it’s up at https://<your-username>.github.io/<room-name>
  7. Open Bebo on your phone > tap gear icon > tap Add Room > enter https://<your-username>.github.io/<room-name>

BOOM! You have a room with fully functional chat.

http://i.imgur.com/lLLu6i9.png

Example 2: Fork empty room > add Bebo SDK

Goal:

Fork blank slate ‘hello-world’ room repo, and:

  1. get basic user information
  2. add push notification functionality
  3. store something in the Bebo database.

Now let’s try adding in some actual Bebo SDK functionality to a new room.

  1. Fork the ‘hello-world’ room at https://github.com/bebo-rooms/hello-world to your own https://github.com/<your-username>/<new-room-name> repo
  2. $ git clone git@github.com:<your-username>/<room-name>.git to clone your fork to your local machine
  3. Follow its README.md instructions. They will look like npm setup npm install etc.
  4. $ git checkout -b gh-pages to create and switch to a new gh-pages branch
  5. $ git push origin gh-pages to tell GitHub to host your code at https://<your-username>.github.io/<room-name>
  6. Verify it’s up at https://<your-username>.github.io/<room-name>
  7. Open Bebo on your phone > tap gear icon > tap Add Room > enter https://<your-username>.github.io/<room-name>
  8. Open index.html
http://i.imgur.com/lLLu6i9.png

More examples

Note

We breezed over a ton of concepts here. If you’re uncomfortable, read Getting Started instead.