6.0.3 • Published 5 years ago

angularfire-lite v6.0.3

Weekly downloads
33
License
Apache-2.0
Repository
github
Last release
5 years ago

angularfire-lite-illustration

travis circleci npmv npmdown daviddep daviddevdep greenkeeper

FeaturesAngularFire LiteAngularFire2
Authentication:heavy_check_mark::heavy_check_mark:
Firestore:heavy_check_mark::heavy_check_mark:
Storage              :heavy_check_mark:  :heavy_check_mark:
Realtime Database:heavy_check_mark::heavy_check_mark:
Cloud Messaging:heavy_check_mark::x:
Server Side Rendering:heavy_check_mark::heavy_plus_sign: :heavy_minus_sign:
State Transfer:heavy_check_mark::x:
Transactions and Batched Writes:heavy_check_mark: Observable Based:x:
NPM Package Size 84 KB :zap:124 KB :turtle:

angluarfire-lite-ssr

Finally SSR with Firebase!


Angularfire Lite is the very first angular library to support server side rendering with firebase.

  • :file_folder: Supports Both Firebase Databases: Firestore & Realtime Database

  • :tada: No Flickering whatsoever when the app bootstraps

  • :zap: Better performance

  • :mag: Search engine optimization

  • :relaxed: Easy implementation

angularfire-lite-step-1

Reminder: don't forget to install nodejs first.

 
npm install --save angularfire-lite firebase
 

angularfire-lite-step-2

How?:

  • Create a firebase account and login to your dashboard

  • Click on 'Add Firebase to your web app' icon and copy the config object

  • Add it to environment.ts & environment.prod.ts located under /src/environments/

export const environment = {
  production: false, // production: true => in `enviroment.prod.ts`
  config: {
    apiKey: '<your-key>',
    authDomain: '<your-project-authdomain>',
    databaseURL: '<your-database-URL>',
    projectId: '<your-project-id>',
    storageBucket: '<your-storage-bucket>',
    messagingSenderId: '<your-messaging-sender-id>'
  }
};

angularfire-lite-step-3

How?:

  • Import the config object we created from enviroment.ts

  • Import AngularFireLite and pass it the config object

import { AngularFireLite } from 'angularfire-lite';
import {environment} from '../environments/environment';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    AngularFireLite.forRoot(environment.config)
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

angularfire-lite-api

  • Observable based: Every function returns an Observable that you should subscribe to it to get back the data.

  • Simple API: AngularFire Lite has a simple straight forward syntax similar to the native Firebase API plus some simple additions.

angularfire-lite-faq

Users


  • Will be there any breaking changes to AngularFire Lite?

AngularFire Lite will try to avoid breaking changes as much as possible and keep the API consistent across all the firebase services provided.

Contributors:


  • How can I contribute?

We want to keep AngularFire Lite in sync with the Firebase API so if any new feature comes out don't hesitate to send a PR.

  • Why AngularFire Lite is so simple?

Why add unnecessary complexity in simplicity draws a straight line to productivity.

  • Why there are no tests?

currenty the demo is our primary test but there will be proper tests in the future.

angularfire-lite-credits

Author:


Maintainers:


Doors are open! I will personally design for you a maintainer card just like the one above too :wink:

6.0.3

5 years ago

6.0.2

6 years ago

6.0.1

6 years ago

6.0.0-dep

6 years ago

6.0.0

6 years ago

6.0.2-rc3

6 years ago

6.0.1-rc3

6 years ago

6.0.0-rc3

6 years ago

6.0.9-rc2

6 years ago

6.0.8-rc2

6 years ago

6.0.7-rc2

6 years ago

6.0.6-rc2

6 years ago

6.0.5-rc2

6 years ago

6.0.4-rc2

6 years ago

6.0.3-rc2

6 years ago

6.0.2-rc2

6 years ago

6.0.1-rc2

6 years ago

6.0.0-rc2

6 years ago

6.0.3-rc1

6 years ago

6.0.2-rc1

6 years ago

6.0.1-rc1

6 years ago

6.1.7-rc0

6 years ago

6.1.6-rc0

6 years ago

6.1.5-rc0

6 years ago

6.1.4-rc0

6 years ago

6.1.3-rc0

6 years ago

6.1.2-rc0

6 years ago

6.1.1-rc0

6 years ago

6.1.0-rc0

6 years ago

6.0.8-rc0

6 years ago

6.0.7-rc0

6 years ago

6.0.6-rc0

6 years ago

6.0.5-rc0

6 years ago

6.0.4-rc0

6 years ago

6.0.3-rc0

6 years ago

6.0.2-rc0

6 years ago

6.0.1-rc0

6 years ago

6.0.0-rc0

6 years ago

5.2.0

6 years ago

5.1.8

6 years ago

5.1.79

6 years ago

5.1.78

6 years ago

5.1.77

6 years ago

5.1.76

6 years ago

5.1.75

6 years ago

5.1.74

6 years ago

5.1.73

6 years ago

5.1.72

6 years ago

5.1.71

6 years ago

5.1.7

6 years ago

5.1.65

6 years ago

5.1.6

6 years ago

5.1.5

6 years ago

5.1.4

6 years ago

5.1.3-beta

6 years ago

5.1.2

6 years ago

5.1.2-beta

6 years ago

5.1.194-alpha

6 years ago

5.1.193-alpha

6 years ago

5.1.192-alpha

6 years ago

5.1.191-alpha

6 years ago

5.1.19-alpha

6 years ago

5.1.18-alpha

6 years ago

5.1.17-alpha

6 years ago

5.1.16-alpha

6 years ago

5.1.15-alpha

6 years ago

5.1.1-beta

6 years ago

5.1.0-beta

6 years ago

5.1.3-alpha

6 years ago

5.1.2-alpha

6 years ago

5.1.1-alpha

6 years ago

5.1.0-alpha

6 years ago

5.0.17-beta

6 years ago

5.0.16-beta

6 years ago

5.0.15-beta

6 years ago

5.0.14-beta

6 years ago

5.0.13-beta

6 years ago

5.0.12-beta

6 years ago

5.0.11-beta

6 years ago

5.0.1-beta

6 years ago

5.0.0

6 years ago

5.0.0-beta

6 years ago

1.1.457-alpha

6 years ago

1.1.456-alpha

6 years ago

1.1.455-alpha

6 years ago

1.1.454-alpha

6 years ago

1.1.453-alpha

6 years ago

1.1.452-alpha

6 years ago

1.1.451-alpha

6 years ago

1.1.45-alpha

6 years ago

1.1.44-alpha

6 years ago

1.1.43-alpha

6 years ago

1.1.41-alpha

6 years ago

1.1.4-alpha

6 years ago

1.1.39-alpha

6 years ago

1.1.38-alpha

6 years ago

1.1.37-alpha

6 years ago

1.1.2

6 years ago

1.1.2-beta

6 years ago

1.1.36-alpha

6 years ago

1.1.35-alpha

6 years ago

1.1.34-alpha

6 years ago

1.1.33-alpha

6 years ago

1.1.32-alpha

6 years ago

1.1.31-alpha

6 years ago

1.1.3-alpha

6 years ago

1.1.29-alpha

6 years ago

1.1.28-alpha

6 years ago

1.1.27-alpha

6 years ago

1.1.26-alpha

6 years ago

1.1.25-alpha

6 years ago

1.1.24-alpha

6 years ago

1.1.23-alpha

6 years ago

1.1.22-alpha

6 years ago

1.1.21-alpha

6 years ago

1.1.2-alpha

6 years ago

1.1.19-alpha

6 years ago

1.1.18-alpha

6 years ago

1.1.17-alpha

6 years ago

1.1.16-alpha

6 years ago

1.1.15-beta

6 years ago

1.1.1-beta

6 years ago

1.1.0-beta

6 years ago

1.0.88-alpha

6 years ago

1.0.87-alpha

6 years ago

1.0.86-alpha

6 years ago

1.0.85-alpha

6 years ago

1.0.84-alpha

6 years ago

1.0.83-alpha

6 years ago

1.0.82-alpha

6 years ago

1.0.81-alpha

6 years ago

1.0.8-alpha

6 years ago

1.0.7-alpha

6 years ago

1.0.7-beta

6 years ago

1.0.6-beta

6 years ago

1.0.5-alpha

6 years ago

1.0.5-rc.1

7 years ago

1.0.4-rc.1

7 years ago

1.0.3-rc.1

7 years ago

1.0.2-rc.1

7 years ago

1.0.1-rc.1

7 years ago

1.0.0-rc.1

7 years ago

0.0.20

7 years ago

0.0.19

7 years ago

0.0.18

7 years ago

0.0.16

7 years ago

0.0.15

7 years ago

0.0.13

7 years ago

0.0.11

7 years ago

0.0.1

7 years ago