Set up Firebase
Check out the awesome getting started page on Firebase website
You'll need a Google account (we created a group account for our project)
- Go to https://console.firebase.google.com/
- Click "CREATE NEW PROJECT", give your project a name, and then click "CREATE PROJECT"
- Go to your new project home page and click "Add Firebase to your web app"
- Copy the config object into your database config file (you can also just use it as a script tag in you index.html, but we chose to put it into a separate .js file)
When you finish the steps above your config file should look something like this:
var config = { apiKey: "YOUR_API_KEY", authDomain: "YOUR_PROJECT_ID.firebaseapp.com", databaseURL: "https://YOUR_DATABASE_NAME.firebaseio.com", storageBucket: "YOUR_BUCKET.appspot.com", }; firebase.initializeApp(config);
See runListeners page for more information about Firebase methods we used to interact with our database in real-time