https://github.com/preignition/lit-firebase
Webcomponent for interacting with Firebase, inspired by polymerfire, but based on lit-element
https://github.com/preignition/lit-firebase
Last synced: 10 months ago
JSON representation
Webcomponent for interacting with Firebase, inspired by polymerfire, but based on lit-element
- Host: GitHub
- URL: https://github.com/preignition/lit-firebase
- Owner: preignition
- License: mit
- Created: 2020-02-09T09:50:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-08-15T23:48:42.000Z (almost 3 years ago)
- Last Synced: 2025-09-01T08:01:29.544Z (10 months ago)
- Language: JavaScript
- Size: 661 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# \
This webcomponent follows the [open-wc](https://github.com/open-wc/open-wc) recommendation.
A lit-element based implementation of [polymerfire](https://github.com/FirebaseExtended/polymerfire).
For the time being, only `firebase-document` and `firebase-query` have been migrated (to resp. `lif-document` and `lif-query`).
`firebase-auth` and `firebase-app` will not be upgraded as it is usually simpler to instantiate database and handle authentication via js.
Those components require firebase SDK to be made available on the client (see https://firebase.google.com/docs/web/setup).
Use at your own risks as this is beta product.
## Installation
```bash
npm i @preignition/lifbase
```
## Usage
```html
import '@preignition/lifbase';
and in lit-element render:
this.data = e.detail.value}">
this.data = e.detail.value}">
```
## Testing with Karma
To run the suite of karma tests, run
```bash
npm run test
```
or to run them in compatibility mode for legacy browsers
```bash
npm run test:compatibility
```
To run the tests in watch mode (for TDD, for example), run
```bash
npm run test:watch
```
or
```bash
npm run test:compatibility
```