Connect using firebase rather than firebase-admin? #15

Closed
vkarpov15 opened this Issue Apr 12, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@vkarpov15

The docs tell me to use the client JS SDK for end-user access:

image

But there's no examples for how to do this with nodejs.

@kleinfreund

This comment has been minimized.

Show comment
Hide comment
@kleinfreund

kleinfreund Jul 26, 2017

I believe this section is supposed to cover that: https://firebase.google.com/docs/web/setup#add_firebase_to_your_app

In particular:

// Initialize Firebase
// TODO: Replace with your project's customized code snippet
var config = {
  apiKey: "<API_KEY>",
  authDomain: "<PROJECT_ID>.firebaseapp.com",
  databaseURL: "https://<DATABASE_NAME>.firebaseio.com",
  storageBucket: "<BUCKET>.appspot.com",
};
firebase.initializeApp(config);

kleinfreund commented Jul 26, 2017

I believe this section is supposed to cover that: https://firebase.google.com/docs/web/setup#add_firebase_to_your_app

In particular:

// Initialize Firebase
// TODO: Replace with your project's customized code snippet
var config = {
  apiKey: "<API_KEY>",
  authDomain: "<PROJECT_ID>.firebaseapp.com",
  databaseURL: "https://<DATABASE_NAME>.firebaseio.com",
  storageBucket: "<BUCKET>.appspot.com",
};
firebase.initializeApp(config);
@nicolasgarnier

This comment has been minimized.

Show comment
Hide comment
@nicolasgarnier

nicolasgarnier Apr 5, 2018

Member

Yup there are not really anything differences in using the JS sdk ou in Node vs Web. The only difference is in the install and import.

Install the SDK with: npm install --save firebase
Import the SDK with: var firebase = require('firebase');

Member

nicolasgarnier commented Apr 5, 2018

Yup there are not really anything differences in using the JS sdk ou in Node vs Web. The only difference is in the install and import.

Install the SDK with: npm install --save firebase
Import the SDK with: var firebase = require('firebase');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment