@hadx/firebase
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

Hadex Firebase

Getting started

  1. Create a new project on firebase console (ex: MyApp)

  2. Create Firestore database with Rules

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if request.auth != null;
    }
  }
}
  1. Enable Email/Password Authentication and add a new user, note down the email and password
  2. Install this package
yarn add @hadx/firebase
  1. Add a Web App to the project

  1. Copy and save the firebaseConfig part to your code

Usage

import Firebase from '@hadx/firebase';

const auth = {email: ..., password: ...} // create above (step 3)
const config = {...}; // copied above (step 6)
Firebase.initialize(config, auth, 'myApp');

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.5
    0
    • latest

Version History

Package Sidebar

Install

npm i @hadx/firebase

Weekly Downloads

0

Version

0.0.5

License

ISC

Unpacked Size

6.07 kB

Total Files

8

Last publish

Collaborators

  • newbiebr