Skip to content
forked from zakaye/nodeFire

AngularFire with token authentication on node backend server

Notifications You must be signed in to change notification settings

Parader/nodeFire

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodeFire

AngularFire with token authentication on node backend server

Get Started with nodeFire

  1. Run these commands to add the project locally:
$ git clone https://github.com/LukeSchlangen/nodeFire
$ cd nodeFire
$ npm install
  1. Create a free Firebase account at https://firebase.google.com
  2. Create a project from your Firebase account console
  3. Click the “Add Firebase to your web app” icon
  • Copy the contents WITHOUT SCRIPT TAGS or the CDN from the resulting popup into public/config.js. It should look like this:
  // Initialize Firebase
  var config = {
    apiKey: "XXXXXXXXXXXXXXXXXXXXXX",
    authDomain: "XXXXXXXXXXXX.firebaseapp.com",
    databaseURL: "https://XXXXXXXXXXXX.firebaseio.com",
    storageBucket: "XXXXXXXXXXXX.appspot.com",
    messagingSenderId: "XXXXXXXXXX"
  };
  firebase.initializeApp(config);
  1. Follow the instructions in Add Firebase to your App to add a Firebase service account to your backend
  • Rename the new JSON file to firebase-service-account.json and save it in the server folder of your application
  1. Configure Google as an authentication provider for your Firebase project.
  2. In the Firebase console for your project, click "Auth" in left panel
  3. Click "Set Up Sign-In Method" button
  4. Select "Google"
  5. Click the "edit" icon
  6. Toggle Google to on
  7. Run npm start to run your application on localhost:5000

About

AngularFire with token authentication on node backend server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 66.2%
  • JavaScript 33.8%