Skip to content

AngularFire with token authentication on node backend server

Notifications You must be signed in to change notification settings

zakaye/nodeFire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 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 Alt text Alt text
  2. Create a project from your Firebase account console Alt text Alt text
  3. Click the “Add Firebase to your web app” icon Alt text Alt text
  • 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 Alt text
  • 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.
  • In the Firebase console for your project, click "Auth" in left panel

Alt text

  • Click "Set Up Sign-In Method" button

Alt text

  • Select "Google"

Alt text

  • Click the "edit" icon
  • Enable Google

Alt text

Now, run npm start to run your application on localhost:5000 and its ready to go!

About

AngularFire with token authentication on node backend server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •