Tutorials/helloworldjs

From CubeiaWiki

Jump to: navigation, search

Contents

Hello World Tutorial for Firebase JavaScript API

In this tutorial we will create a simple client in HTML5 that connects to Firebase, can display the lobby and open a table and send some game messages.

For connecting to Firebase we will use JavaScript API, which in turn uses WebSockets.

This tutorial will naturally consist of two steps, building the server side logic and building the client.

So, start by following the server part and then move on to the HTML5 client.

Server

The server part is here.

Client

The client part is here.

Screenshot

Here's a screenshot of the finished client, showing the game lobby:

File:Screenshot.jpg

Personal tools