Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Firebase App Development With SwallowJS

Firebase App Development With SwallowJS

SWALLOWJS + FIREBASE

Avatar for Olatunde Owokoniran

Olatunde Owokoniran

July 28, 2017

More Decks by Olatunde Owokoniran

Other Decks in Programming

Transcript

  1. Friday 28th July, 2017 Var View: { "home": "views/home.html", "page_loader":

    "view/loader.html", "404": "views/error/404.html" }
  2. { "beatles": [ { "firstName": "John", "lastName": "Lennon" }, {

    "firstName": "Paul", "lastName": "McCartney" }, { "firstName": "Ringo", "lastName": "Starr" } ], "full_name": function () { return this.firstName + " " + this.lastName; } } {{#beatles}} * {{full_name}} {{/beatles}} * John Lennon * Paul McCartney * George Harrison * Ringo Starr Friday 28th July, 2017
  3. Friday 28th July, 2017 LogMessages(“ log messages ”); swallowLoading(TRUE); //to

    show loading loadScript(‘../path_to_jsfile’); loadStyles(‘../path_to_cssfile’); getInputFile(‘file_image’); // input name shuffleArray([array]); // input name And many more...
  4. Friday 28th July, 2017 findOne(‘/user’) findAll(‘/user’, ‘10’) //with limit saveData({name:

    Olatunde, email: [email protected]}) updateData(‘/user/-kginie3bjd’,{name: Olatunde}) deleteData(‘/user/-kginie3bjd’) //with node id customQuery(ref('albums').orderByChild('album_artist')) incrementValue(‘/user/-kginie3bjd’, +1) fileUpload initLoadMore & loadMore(‘20’) //load more nodes