
Product
Introducing Module Reachability: Focus on the Vulnerabilities That Matter
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
angularfire-lite
Advanced tools
lightweight wrapper to use Firebase API with Angular.
Features | AngularFire Lite | AngularFire2 |
---|---|---|
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: |
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
Reminder: don't forget to install nodejs first.
npm install --save angularfire-lite firebase
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>'
}
};
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 { }
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.
You can also clone the live demo to use it as a starting point in the meantime as AFL CLI gets launched officially soon. so stay tuned!
AngularFire Lite will try to avoid breaking changes as much as possible and keep the API consistent across all the firebase services provided.
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 add unnecessary complexity in simplicity draws a straight line to productivity.
currenty the demo is our primary test but there will be proper tests in the future.
Doors are open! I will personally design for you a maintainer card just like the one above too :wink:
FAQs
Lightweight library to use Firebase API with Angular.
The npm package angularfire-lite receives a total of 486 weekly downloads. As such, angularfire-lite popularity was classified as not popular.
We found that angularfire-lite demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
Company News
Socket is bringing best-in-class reachability analysis into the platform — cutting false positives, accelerating triage, and cementing our place as the leader in software supply chain security.
Product
Socket is introducing a new way to organize repositories and apply repository-specific security policies.