Top Banner
Good Evening!
25

Jakarta js meetup - Real time web apps with vue & firebase - may 17, 2017

Jan 29, 2018

Download

Software

Septian Tama
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Good Evening!

Page 2: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Introduction

Page 3: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Septian Adhi Tama

Self proclaimed ‘Tamvan’

Currently :

Instructor @Hacktiv8

Web Developer

Blogger (Hiatus due to endless maintenance of my blog)

Page 4: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Realtime Web Apps With Vue.js and Firebase

Page 5: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Let me ask you some questions?

Page 6: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

A Progressive JavaScript Framework

https://vuejs.org

Page 7: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Vue.js FeaturesWhat’s inside?

● Directive

● Two-way data binding

● Reactive and Composable

Components

● Small size and fast loading

● Single File Component

● A lot of companion library are

provided by the community

Page 8: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Vue.js Pros What makes it good?

Pros :

● Small and Fast

● Easy to understand

● Simplicity

● Flexibility

● Very Good Documentation

Page 9: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Single File Components

Three Parts :

template : contains the markup or

the stucture of the component.

Can be written in html or

templating engine such as pug

or handlebars.

script : contains logic, and state for

the components

style : components styling, can be

written in css, or css

preprocessor such as stylus,

sass, or less

https://vuejs.org/v2/guide/single-file-components.html

Page 10: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Vue.js ConsThere’s Nothing Perfect

Cons :

● Just getting popular recently

● Language Barrier (Most user

are not english speaking

developer)

● Being too flexible can be too

problematic

Page 11: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Tools from Google helps you build better mobile apps and grow your

business.

https://firebase.com

Page 12: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Firebase Features

What’s Inside?

Realtime database

Authentication

Cloud storage

Hosting

Analytics

etc.

Page 13: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Firebase Pros What makes it good?

Pros :

● It’s realtime

● Easy integration with iOS,

Android, and Web

● Minimal Setup

● Easy access to data

● Serverless

● Secure

● It’s Google bruh!

● etc.

Page 14: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Firebase ConsThere’s Nothing Perfect

Cons :

● Not wide battle tested?

● Limited querying and indexing

● Can’t query list of users and

stored files

Page 15: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Vue.js + Firebase = VueFireVue.js binding for FireBase

https://github.com/vuejs/vuefire

Page 16: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Usage / Implementation

Page 17: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Easy Instalation

Page 18: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

App Initialization & Binding data to

state

Page 19: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Accessing Data

Page 20: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Add New Data

Page 21: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Update & Remove

Page 22: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Deployment

Install firebase tools

Init firebase project

Set up configuration in firebase.json file

Simply deploy it!

Page 23: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Demohttps://kamvan-6aa69.firebaseapp.com/#/

Page 24: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Any Questions?

Page 25: Jakarta js meetup  - Real time web apps with vue & firebase - may 17, 2017

Thank You & See ya!

Github : @tamatamvan

Facebook :

● https://facebook.com/s.ai.tam

a.adhi

Email :

[email protected]

[email protected]