firebase-saga
Advanced tools
Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "firebase-saga", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "A library for connecting Redux saga middleware to Firebase.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,3 +13,3 @@ # firebase-saga | ||
## Connecting to Sagas | ||
### Integrate Firebase with Sagas | ||
@@ -36,1 +36,29 @@ The saga can be like the following: | ||
``` | ||
### Add Firebase to your web app | ||
In your `index.html` file add the **Firebase** config: | ||
``` | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
</head> | ||
<body> | ||
<main id="root"></main> | ||
<script src="https://www.gstatic.com/firebasejs/3.2.0/firebase.js"></script> | ||
<script> | ||
// Initialize Firebase | ||
var config = { | ||
apiKey: '<YOUR API KEY>', | ||
authDomain: '<YOUR APP NAME>.firebaseapp.com', | ||
databaseURL: 'https://<YOUR APP NAME>.firebaseio.com', | ||
storageBucket: '<YOUR APP NAME>.appspot.com' | ||
}; | ||
firebase.initializeApp(config); | ||
</script> | ||
<script src="/static/bundle.js"></script> | ||
</body> | ||
</html> | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83575
10
63