Building Apps with AngularFire 2 and Firebase CLI

AngularFire 2’s API with your Angular and Firebase applications. Using observables with AngularFire 2’s real-time bindings and authentication.

AngularFire2

Firebase CLI and tools https://github.com/firebase/firebase-tools

https://firebase.google.com/docs/web/setup?authuser=0

Package cmd: npm install firebase –save

nodesetup

Install tools: cmd: npm install -g firebase-tools

Login cmd: firebase login

After running: cmd firebase init Few questions will be asked and Reply(In Bold) as follows:

Are you ready to proceed? : Yes
Which Firebase CLI features do you want to set up for this folder? Press Space to select features, then Enter to confirm your choices. : Hosting: Configure and deploy Firebase Hosting sites
=== Project Setup

Select a default Firebase project for this directory: Your firebase Project name
=== Hosting Setup

What do you want to use as your public directory? dist
Configure as a single-page app (rewrite all urls to /index.html)? No
File dist/404.html already exists. Overwrite? No
File dist/index.html already exists. Overwrite? No
—–Firebase initialization complete!—–

Now Re-run your app using: cmd ng build (Imp step)

—-Deploy—-

cmd firebase deploy

Click on Hosting URL.

DONE

One Reply to “Building Apps with AngularFire 2 and Firebase CLI”

  1. Heya i’m the very first time here best hosting. I uncovered that panel we believe that it is really practical & the item solved the problem out a lot. I really hope to supply one thing once more as well as help others such as you taught me to be.

Leave a Reply

Your email address will not be published. Required fields are marked *