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:
- Fork the ‘chat’ room at https://github.com/bebo-rooms/chat to your own https://github.com/<your-username>/<new-room-name> repo
$ git clone git@github.com:<your-username>/<room-name>.gitto clone your fork to your local machine- Follow its README.md instructions. They will look like
npm setupnpm installetc. $ git checkout -b gh-pagesto create and switch to a new gh-pages branch$ git push origin gh-pagesto tell GitHub to host your code at https://<your-username>.github.io/<room-name>- Verify it’s up at https://<your-username>.github.io/<room-name>
- 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.
Example 2: Fork empty room > add Bebo SDK¶
Goal:
Fork blank slate ‘hello-world’ room repo, and:
- get basic user information
- add push notification functionality
- store something in the Bebo database.
Now let’s try adding in some actual Bebo SDK functionality to a new room.
- 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
$ git clone git@github.com:<your-username>/<room-name>.gitto clone your fork to your local machine- Follow its README.md instructions. They will look like
npm setupnpm installetc. $ git checkout -b gh-pagesto create and switch to a new gh-pages branch$ git push origin gh-pagesto tell GitHub to host your code at https://<your-username>.github.io/<room-name>- Verify it’s up at https://<your-username>.github.io/<room-name>
- Open Bebo on your phone > tap gear icon > tap Add Room > enter https://<your-username>.github.io/<room-name>
- Open index.html
More examples¶
- For a full list of rooms, visit https://github.com/bebo-rooms
- Additional blog post walkthroughs of examples at Examples
Note
We breezed over a ton of concepts here. If you’re uncomfortable, read Getting Started instead.