File tree Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ package-lock.json
2
+ node_modules
Original file line number Diff line number Diff line change
1
+ var firebase = require ( '@firebase/app' ) ;
2
+
3
+ function multpleFirebaseApps ( ) {
4
+ // [START firebase_options]
5
+ // The following fields are REQUIRED:
6
+ // - Project ID
7
+ // - App ID
8
+ // - API Key
9
+ var secondaryAppConfig = {
10
+ projectId : "<PROJECT_ID>" ,
11
+ appId : "<APP_ID>" ,
12
+ apiKey : "<API_KEY>" ,
13
+ // databaseURL: "...",
14
+ // storageBucket: "...",
15
+ } ;
16
+ // [END firebase_options]
17
+
18
+ // [START firebase_secondary]
19
+ // Initialize another app with a different config
20
+ var secondaryApp = firebase . initializeApp ( secondaryAppConfig , "secondary" ) ;
21
+ // Access services, such as the Realtime Database
22
+ // secondaryApp.database();
23
+ // [END firebase_secondary]
24
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " firebaseapp" ,
3
+ "version" : " 1.0.0" ,
4
+ "description" : " " ,
5
+ "main" : " firebaseapp.js" ,
6
+ "scripts" : {
7
+ "test" : " echo \" Error: no test specified\" && exit 1"
8
+ },
9
+ "author" : " " ,
10
+ "license" : " Apache-2.0" ,
11
+ "dependencies" : {
12
+ "firebase" : " ^7.9.2"
13
+ }
14
+ }
You can’t perform that action at this time.
0 commit comments