Appendix C. Setting up a Firebase server

 

Angello comes with Firebase already set up. However, we strongly encourage you to set up your own account with Firebase so you can view and manipulate all your data.

Set up an account with Firebase

Go to https://www.firebase.com/ and click Start Hacking. Once you have registered, you’ll be taken to your brand-new dashboard.

Create your first app

On the left side of your dashboard, you’ll see a form for creating new apps. Fill it out with a name like my-first-angello (or some other descriptive name that strikes your fancy). Then click Create New App to breathe life into your new application!

Bootstrap your Firebase app to Angello

If you haven’t yet downloaded the code for Angello, head on over to appendix D to get set up.

Once you have the code, go back to your browser and view your created app. Click the provided Firebase URL; this will take you to your app’s view. Copy the entire URL in your address bar; then open Endpoint-ConfigService.js, find the endPointMap object, and update its URI property to your Firebase URL. Make sure there’s a trailing slash at the end. In the same file, make sure that .constant ('CURRENT_BACKEND', 'firebase') (line three as of this writing) is uncommented and .constant('CURRENT_BACKEND', 'node') (line two as of this writing) is commented out. Start up the Angello app, create a user and a story, and then go back to your Firebase URL and see the magic that is real-time data!

A note about Auth0

sitemap