Skip to content

hassan005004/az-firebase-web

Repository files navigation

limitations

Realtime database only

Noteable

  • If you want to change query then search for this "this is your query to change"

things to cover

Following points are remaing

  • Add picture upload + retrive
  • Orderby
  • Pagination
  • Records per page
  • Records counting
  • Loader - i think no need
  • When new record added please record not clearing

form-to-firebase.html

Just name a class to your form and form submit to firebase

<script>
$('.firebaseajax').submit(function(e) {
  e.preventDefault();
  output = $.fn.formToFirebase(this,'no','no');
  output.then(function(data) {
    // handle success
    console.log(data);
  }).catch(e => {
    // handle catch
    console.log(e);
  });
});
</script>

firebase-to-table.html

Check the file

Call the function
<script>
$.fn.firebaseToTable('.firebase-to-table');
</script>

firebase-to-div.html

Check the file

Call the function
<script>
$.fn.firebaseToDiv('.firebase-to-div');
</script>

framework.html

step1) initilize
await new FirebaseTable('reviews');

step2) methods
limit()
orderByKey()
orderByValue()
where('column', 'operator', 'value')

step3) run query methods
count()
isExists()
get()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages