create-firebase-store
v1.0.4
Published
A simple javascript library for creating a firebase store.
Downloads
8
Maintainers
Readme
create-firebase-store
A simple package to create a Firebase Firestore database.
Installation
npm install create-firebase-store
Usage
import createFirebaseStore from "create-firebase-store"
const firebaseConfig = {
apiKey: "YOUR_API_KEY",
authDomain: "YOUR_AUTH_DOMAIN",
projectId: "YOUR_PROJECT_ID",
storageBucket: "YOUR_STORAGE_BUCKET",
messagingSenderId: "YOUR_MESSAGING_SENDER_ID",
appId: "YOUR_APP_ID",
measurementId: "YOUR_MEASUREMENT_ID",
}
const store = createFirebaseStore(firebaseConfig)
API
| Value | Parameters |
| ---------------------------- | ------------------- |
| signOut
| |
| signInWithEmailAndPassword
| email
, password
|
| onAuthStateChanged
| callback
|
| getDoc
| path
|
| setDoc
| path
, value
|
| updateDoc
| path
, value
|