Skip to content

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.comAlt textAlt text
  2. Create a project from your Firebase account console Alt textAlt text
  3. Click the “Add Firebase to your web app” icon Alt textAlt text
  • Copy the contents WITHOUT SCRIPT TAGS or the CDN from the resulting popup into public/config.js. It should look like this:
// Initialize Firebasevarconfig={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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages