SlideShare a Scribd company logo
1 of 41
Download to read offline
Richard Lee, Google Developer Expert for Firebase
Firebase & 快速打造 MVP
March 2023 @ GDSC NYCU
Google Developer Expert
• 在學創辦愛料理&INSIDE
• Google Developer Expert
• LINE API Expert
• 聯絡我:@dlackty
Richard Lee
哪些 Google 技術
可以快速幫助打造 MVP?
Firebase 百寶箱有很多⼯具
可以開發、或是發展你的服務
做專案的秘訣:
去找 Google Codelabs 範例抄
What Firebase can help you?
From build, to grow & enhance your app
• Develop
• Host your web app
• Store your data
• Enhance
• Make your app stable
• Analyze app usage
• Grow
• Remotely update UI or con
fi
gs
• Run A/B testing
Host your app
Firebase Hosting
Super easy and fast hosting
• Backed by Google’s global network
• Suitable for all kind os front-end frameworks (Angular / React / Vue)
• Free custom domain & SSL support. Tra
ffi
c: 360 MB/day, $0.15/GB
• Need some backend logics?
• Integrate with Firebase Cloud Functions (Node.js)
• Integrate with Cloud Run (Docker-based environment)
Store your data
Cloud Firestore
If you know MongoDB, you know Firestore
• One of the best “serverless database” available in the world
• Support all major platforms across web & app
• Schema-free, store whatever you want
• Built-in o
ffl
ine support, and realtime sync between devices
• Integrate with other Firebase products well
import { collection, addDoc } from "firebase/firestore";
try {
const docRef = await addDoc(collection(db, "users"), {
first: "Ada",
last: "Lovelace",
born: 1815
});
console.log("Document written with ID: ", docRef.id);
} catch (e) {
console.error("Error adding document: ", e);
}
Add data via Firestore
import { collection, getDocs } from "firebase/firestore";
const querySnapshot = await getDocs(collection(db, "users"));
querySnapshot.forEach((doc)
=
>
{
console.log(`${doc.id}
=
>
${doc.data()}`);
});
Read data via Firestore
Make your app stable
Firebase Crashlytics
Lightweight, realtime crash reporter
• The leading crash reporting service on Apple, Android, Flutter, and Unity
• Easy to integrate, takes less than 10 mins
• Receive realtime crash report via Email or Slack
• Try to keep 99% crash-free sessions
• Native integration with Android Studio & Google Play
Analyze app usage
Google Analytics (fka Firebase Analytics)
De-facto standard for app/web analytics
• Firebase’s Analytics product now becomes Google Analytics 4
• Google Analytics is the most used analytic app by internet professionals
• The legacy Google Analytics will be end-of-life on July 1, 2023
• You can analyze cross platforms usage and reduce duplications
• Powered by Google Signals
• Di
ff
erent platform installed as “streams” of events into same GA property
Remotely update UI or configs
Firebase Remote Config
Change behaviors or UI without publishing an app update
• It works on native apps and also web!
• Basically it just a remotely fetched key-value dictionary
• With ability to provide di
ff
erent value for di
ff
erent kind of audiences
• We actually use it for “lightweight APIs”
• Banner / copywriting management for marketing
• Dynamically enable features for a speci
fi
c period of time (e.g. LNY)
• Caution: The update might not be real-time. Be careful to add critical logics!
Run A/B testing
Firebase A/B Testing
A/B testing for various Firebase features
• To use A/B testing, you need Google Analytics
• For measure and targeting
• Then Firebase A/B testing will help you
• Split targets into groups
• Run experiments with di
ff
erent values
• Calculate the winning variant
Takeaways
So many features covered in this session I know…
• The must haves
• Firebase Crashlytics - Try to make sure you have 99% crash-free sessions
• Google Analytics - De-facto standard for app/web analytics
• Nice to haves
• Firebase Remote Con
fi
g - Save time APIs for marketing or testing
• Firebase A/B Testing - Easy way to do A/B testing right
• Others: Depends on your cases
What others Firebase can help you?
Some advanced use cases
• Firebase Messaging
• Send push messages
• Show in-app prompts
• Firebase Authentication
• Let user login with email / phone
• O
ffi
cial support Google / Facebook
• Community support LINE / ETH
• Firebase Test Lab
• Real devices on cloud for testing
• Firebase Dynamic Links
• Shortened URLs
• Deferred deep links to your app
• Firebase Extensions
• Pre-packaged solutions
Final remarks
As a student developer, please don’t miss some good things
• GitHub Student Developer Pack - Free domain / cloud / tools
• Google Summer of Code - Learn from open source experts
• Google Developer Student Club - Yes, this event
• Internship - The best chance to get into dream companies
• Graduate level courses - Make you di
ff
erent than others
Q&A
謝謝!

More Related Content

Similar to Firebase 基礎上手 |2小時由入門到精通 | GDSC NYCU

01 DevOps and Azure DevOps overview
01 DevOps and Azure DevOps overview01 DevOps and Azure DevOps overview
01 DevOps and Azure DevOps overviewAlan Tsai
 
GDG Taichung - Flutter and Firebase.pdf
GDG Taichung - Flutter and Firebase.pdfGDG Taichung - Flutter and Firebase.pdf
GDG Taichung - Flutter and Firebase.pdfDuran Hsieh
 
Phalcon2014 Startup
Phalcon2014 StartupPhalcon2014 Startup
Phalcon2014 StartupSteve Luo
 
開放原始碼 Ch1.3 intro - oss - google codes (ver 2.0)
開放原始碼 Ch1.3   intro - oss - google codes (ver 2.0)開放原始碼 Ch1.3   intro - oss - google codes (ver 2.0)
開放原始碼 Ch1.3 intro - oss - google codes (ver 2.0)My own sweet home!
 
探索 API 開發的挑戰與解決之道 | .NET Conf 2023 Taiwan
探索 API 開發的挑戰與解決之道 | .NET Conf 2023 Taiwan探索 API 開發的挑戰與解決之道 | .NET Conf 2023 Taiwan
探索 API 開發的挑戰與解決之道 | .NET Conf 2023 TaiwanAlan Tsai
 
02 azure devops pipeline - build
02 azure devops pipeline - build02 azure devops pipeline - build
02 azure devops pipeline - buildAlan Tsai
 
Appium手机自动化测试 tester home公开课
Appium手机自动化测试 tester home公开课Appium手机自动化测试 tester home公开课
Appium手机自动化测试 tester home公开课lihuazhang
 
導入 Flutter 前你應該知道的事
導入 Flutter 前你應該知道的事導入 Flutter 前你應該知道的事
導入 Flutter 前你應該知道的事Weizhong Yang
 
03 azure devops pipeline - release
03 azure devops pipeline - release03 azure devops pipeline - release
03 azure devops pipeline - releaseAlan Tsai
 
Appium手机自动化测试 testerhome_bqcon版本
Appium手机自动化测试 testerhome_bqcon版本Appium手机自动化测试 testerhome_bqcon版本
Appium手机自动化测试 testerhome_bqcon版本延胜 黄
 
Universal windows apps 開發—運用 html 及 java script
Universal windows apps 開發—運用 html 及 java scriptUniversal windows apps 開發—運用 html 及 java script
Universal windows apps 開發—運用 html 及 java scriptIan Chen
 
KSDG BaaS Intro
KSDG BaaS IntroKSDG BaaS Intro
KSDG BaaS Introericpi Bi
 
Appcan移动应用开发平台介绍120409
Appcan移动应用开发平台介绍120409Appcan移动应用开发平台介绍120409
Appcan移动应用开发平台介绍120409zhengyiwuxian
 
Android快速发布&持续集成
Android快速发布&持续集成Android快速发布&持续集成
Android快速发布&持续集成whykill
 
讓 HTML5 走進 IPTV Framework
讓 HTML5 走進 IPTV Framework讓 HTML5 走進 IPTV Framework
讓 HTML5 走進 IPTV FrameworkJollen Chen
 
Langchain and Azure ML and Open AI
Langchain and Azure ML and Open AILangchain and Azure ML and Open AI
Langchain and Azure ML and Open AIKo Ko
 
How to integrate GitLab CICD into B2B service
How to integrate GitLab CICD into B2B serviceHow to integrate GitLab CICD into B2B service
How to integrate GitLab CICD into B2B serviceAlex Su
 
使用 Angular 2 與 Firebase 實現 Serverless 網站架構 (JSDC.tw 2016)
使用 Angular 2 與 Firebase 實現 Serverless 網站架構 (JSDC.tw 2016)使用 Angular 2 與 Firebase 實現 Serverless 網站架構 (JSDC.tw 2016)
使用 Angular 2 與 Firebase 實現 Serverless 網站架構 (JSDC.tw 2016)Will Huang
 

Similar to Firebase 基礎上手 |2小時由入門到精通 | GDSC NYCU (20)

01 DevOps and Azure DevOps overview
01 DevOps and Azure DevOps overview01 DevOps and Azure DevOps overview
01 DevOps and Azure DevOps overview
 
GDG Taichung - Flutter and Firebase.pdf
GDG Taichung - Flutter and Firebase.pdfGDG Taichung - Flutter and Firebase.pdf
GDG Taichung - Flutter and Firebase.pdf
 
Phalcon2014 Startup
Phalcon2014 StartupPhalcon2014 Startup
Phalcon2014 Startup
 
開放原始碼 Ch1.3 intro - oss - google codes (ver 2.0)
開放原始碼 Ch1.3   intro - oss - google codes (ver 2.0)開放原始碼 Ch1.3   intro - oss - google codes (ver 2.0)
開放原始碼 Ch1.3 intro - oss - google codes (ver 2.0)
 
探索 API 開發的挑戰與解決之道 | .NET Conf 2023 Taiwan
探索 API 開發的挑戰與解決之道 | .NET Conf 2023 Taiwan探索 API 開發的挑戰與解決之道 | .NET Conf 2023 Taiwan
探索 API 開發的挑戰與解決之道 | .NET Conf 2023 Taiwan
 
02 azure devops pipeline - build
02 azure devops pipeline - build02 azure devops pipeline - build
02 azure devops pipeline - build
 
Appium手机自动化测试 tester home公开课
Appium手机自动化测试 tester home公开课Appium手机自动化测试 tester home公开课
Appium手机自动化测试 tester home公开课
 
導入 Flutter 前你應該知道的事
導入 Flutter 前你應該知道的事導入 Flutter 前你應該知道的事
導入 Flutter 前你應該知道的事
 
03 azure devops pipeline - release
03 azure devops pipeline - release03 azure devops pipeline - release
03 azure devops pipeline - release
 
Appium手机自动化测试 testerhome_bqcon版本
Appium手机自动化测试 testerhome_bqcon版本Appium手机自动化测试 testerhome_bqcon版本
Appium手机自动化测试 testerhome_bqcon版本
 
Html5
Html5Html5
Html5
 
Universal windows apps 開發—運用 html 及 java script
Universal windows apps 開發—運用 html 及 java scriptUniversal windows apps 開發—運用 html 及 java script
Universal windows apps 開發—運用 html 及 java script
 
宅學習 Firebase
宅學習 Firebase宅學習 Firebase
宅學習 Firebase
 
KSDG BaaS Intro
KSDG BaaS IntroKSDG BaaS Intro
KSDG BaaS Intro
 
Appcan移动应用开发平台介绍120409
Appcan移动应用开发平台介绍120409Appcan移动应用开发平台介绍120409
Appcan移动应用开发平台介绍120409
 
Android快速发布&持续集成
Android快速发布&持续集成Android快速发布&持续集成
Android快速发布&持续集成
 
讓 HTML5 走進 IPTV Framework
讓 HTML5 走進 IPTV Framework讓 HTML5 走進 IPTV Framework
讓 HTML5 走進 IPTV Framework
 
Langchain and Azure ML and Open AI
Langchain and Azure ML and Open AILangchain and Azure ML and Open AI
Langchain and Azure ML and Open AI
 
How to integrate GitLab CICD into B2B service
How to integrate GitLab CICD into B2B serviceHow to integrate GitLab CICD into B2B service
How to integrate GitLab CICD into B2B service
 
使用 Angular 2 與 Firebase 實現 Serverless 網站架構 (JSDC.tw 2016)
使用 Angular 2 與 Firebase 實現 Serverless 網站架構 (JSDC.tw 2016)使用 Angular 2 與 Firebase 實現 Serverless 網站架構 (JSDC.tw 2016)
使用 Angular 2 與 Firebase 實現 Serverless 網站架構 (JSDC.tw 2016)
 

More from National Yang Ming Chiao Tung University

The Cloud-Native Solution of Integrate Satellite Ground Station System and Te...
The Cloud-Native Solution of Integrate Satellite Ground Station System and Te...The Cloud-Native Solution of Integrate Satellite Ground Station System and Te...
The Cloud-Native Solution of Integrate Satellite Ground Station System and Te...National Yang Ming Chiao Tung University
 
陽明交大 百川學程 服務學習二 專業服務企畫案-期末論壇 簡報
陽明交大 百川學程 服務學習二 專業服務企畫案-期末論壇 簡報陽明交大 百川學程 服務學習二 專業服務企畫案-期末論壇 簡報
陽明交大 百川學程 服務學習二 專業服務企畫案-期末論壇 簡報National Yang Ming Chiao Tung University
 
陽明學生會 陽明校區無線通訊品質問題-初步進度報告書
陽明學生會 陽明校區無線通訊品質問題-初步進度報告書陽明學生會 陽明校區無線通訊品質問題-初步進度報告書
陽明學生會 陽明校區無線通訊品質問題-初步進度報告書National Yang Ming Chiao Tung University
 
博雅書苑 社教中心 Active Learning 自主學習計畫說明會 -蔡秀吉經驗分享簡報
博雅書苑 社教中心 Active Learning 自主學習計畫說明會 -蔡秀吉經驗分享簡報博雅書苑 社教中心 Active Learning 自主學習計畫說明會 -蔡秀吉經驗分享簡報
博雅書苑 社教中心 Active Learning 自主學習計畫說明會 -蔡秀吉經驗分享簡報National Yang Ming Chiao Tung University
 

More from National Yang Ming Chiao Tung University (20)

GDSC CTU First Meeting Party
GDSC CTU First Meeting PartyGDSC CTU First Meeting Party
GDSC CTU First Meeting Party
 
The Cloud-Native Solution of Integrate Satellite Ground Station System and Te...
The Cloud-Native Solution of Integrate Satellite Ground Station System and Te...The Cloud-Native Solution of Integrate Satellite Ground Station System and Te...
The Cloud-Native Solution of Integrate Satellite Ground Station System and Te...
 
AI/ML O-RAN Cloud-Native Automation
AI/ML O-RAN Cloud-Native AutomationAI/ML O-RAN Cloud-Native Automation
AI/ML O-RAN Cloud-Native Automation
 
從 Taker 成為 Giver!偏鄉學生也能成為開源貢獻者!
從 Taker 成為 Giver!偏鄉學生也能成為開源貢獻者!從 Taker 成為 Giver!偏鄉學生也能成為開源貢獻者!
從 Taker 成為 Giver!偏鄉學生也能成為開源貢獻者!
 
什麼是Nephio?
什麼是Nephio?什麼是Nephio?
什麼是Nephio?
 
Google IO Extended 2023 Hsinchu開場
Google IO Extended 2023 Hsinchu開場Google IO Extended 2023 Hsinchu開場
Google IO Extended 2023 Hsinchu開場
 
Case Studied on Federated learning Deployment in O-RAN
Case Studied on Federated learning Deployment in O-RANCase Studied on Federated learning Deployment in O-RAN
Case Studied on Federated learning Deployment in O-RAN
 
跟著 AI 學 Angular:活用 AI 讓你輕鬆快速掌握任何知識
跟著 AI 學 Angular:活用 AI 讓你輕鬆快速掌握任何知識跟著 AI 學 Angular:活用 AI 讓你輕鬆快速掌握任何知識
跟著 AI 學 Angular:活用 AI 讓你輕鬆快速掌握任何知識
 
Flutter實作概述 | GDSC NYCU
Flutter實作概述 | GDSC NYCUFlutter實作概述 | GDSC NYCU
Flutter實作概述 | GDSC NYCU
 
陽明交大 百川學程 服務學習二 專業服務企畫案-期末論壇 簡報
陽明交大 百川學程 服務學習二 專業服務企畫案-期末論壇 簡報陽明交大 百川學程 服務學習二 專業服務企畫案-期末論壇 簡報
陽明交大 百川學程 服務學習二 專業服務企畫案-期末論壇 簡報
 
找到你的為什麼,革自己的命 | 偏鄉教育 | 蔡秀吉
找到你的為什麼,革自己的命 | 偏鄉教育 | 蔡秀吉找到你的為什麼,革自己的命 | 偏鄉教育 | 蔡秀吉
找到你的為什麼,革自己的命 | 偏鄉教育 | 蔡秀吉
 
Flutter實作概述 | GDSC NYCU
Flutter實作概述 | GDSC NYCUFlutter實作概述 | GDSC NYCU
Flutter實作概述 | GDSC NYCU
 
GDSC NYCU下學期社員大會
GDSC NYCU下學期社員大會GDSC NYCU下學期社員大會
GDSC NYCU下學期社員大會
 
The Development and Prospect of Deploying Cloud-Native O-RAN.pdf
The Development and Prospect of Deploying Cloud-Native O-RAN.pdfThe Development and Prospect of Deploying Cloud-Native O-RAN.pdf
The Development and Prospect of Deploying Cloud-Native O-RAN.pdf
 
部屬雲原生O-RAN架構的發展與展望
部屬雲原生O-RAN架構的發展與展望部屬雲原生O-RAN架構的發展與展望
部屬雲原生O-RAN架構的發展與展望
 
Young飛全球行動計畫 ppt 年度成果簡報
Young飛全球行動計畫 ppt 年度成果簡報Young飛全球行動計畫 ppt 年度成果簡報
Young飛全球行動計畫 ppt 年度成果簡報
 
World Engineering Day Hackathon 2023
World Engineering Day Hackathon 2023World Engineering Day Hackathon 2023
World Engineering Day Hackathon 2023
 
陽明學生會 陽明校區無線通訊品質問題-初步進度報告書
陽明學生會 陽明校區無線通訊品質問題-初步進度報告書陽明學生會 陽明校區無線通訊品質問題-初步進度報告書
陽明學生會 陽明校區無線通訊品質問題-初步進度報告書
 
博雅書苑 社教中心 Active Learning 自主學習計畫說明會 -蔡秀吉經驗分享簡報
博雅書苑 社教中心 Active Learning 自主學習計畫說明會 -蔡秀吉經驗分享簡報博雅書苑 社教中心 Active Learning 自主學習計畫說明會 -蔡秀吉經驗分享簡報
博雅書苑 社教中心 Active Learning 自主學習計畫說明會 -蔡秀吉經驗分享簡報
 
從零開始學 Android
從零開始學 Android從零開始學 Android
從零開始學 Android
 

Firebase 基礎上手 |2小時由入門到精通 | GDSC NYCU

  • 1. Richard Lee, Google Developer Expert for Firebase Firebase & 快速打造 MVP March 2023 @ GDSC NYCU
  • 2. Google Developer Expert • 在學創辦愛料理&INSIDE • Google Developer Expert • LINE API Expert • 聯絡我:@dlackty Richard Lee
  • 3.
  • 4.
  • 6.
  • 9. What Firebase can help you? From build, to grow & enhance your app • Develop • Host your web app • Store your data • Enhance • Make your app stable • Analyze app usage • Grow • Remotely update UI or con fi gs • Run A/B testing
  • 11.
  • 12. Firebase Hosting Super easy and fast hosting • Backed by Google’s global network • Suitable for all kind os front-end frameworks (Angular / React / Vue) • Free custom domain & SSL support. Tra ffi c: 360 MB/day, $0.15/GB • Need some backend logics? • Integrate with Firebase Cloud Functions (Node.js) • Integrate with Cloud Run (Docker-based environment)
  • 13.
  • 15.
  • 16. Cloud Firestore If you know MongoDB, you know Firestore • One of the best “serverless database” available in the world • Support all major platforms across web & app • Schema-free, store whatever you want • Built-in o ffl ine support, and realtime sync between devices • Integrate with other Firebase products well
  • 17. import { collection, addDoc } from "firebase/firestore"; try { const docRef = await addDoc(collection(db, "users"), { first: "Ada", last: "Lovelace", born: 1815 }); console.log("Document written with ID: ", docRef.id); } catch (e) { console.error("Error adding document: ", e); } Add data via Firestore
  • 18. import { collection, getDocs } from "firebase/firestore"; const querySnapshot = await getDocs(collection(db, "users")); querySnapshot.forEach((doc) = > { console.log(`${doc.id} = > ${doc.data()}`); }); Read data via Firestore
  • 19. Make your app stable
  • 20.
  • 21. Firebase Crashlytics Lightweight, realtime crash reporter • The leading crash reporting service on Apple, Android, Flutter, and Unity • Easy to integrate, takes less than 10 mins • Receive realtime crash report via Email or Slack • Try to keep 99% crash-free sessions • Native integration with Android Studio & Google Play
  • 22.
  • 24.
  • 25. Google Analytics (fka Firebase Analytics) De-facto standard for app/web analytics • Firebase’s Analytics product now becomes Google Analytics 4 • Google Analytics is the most used analytic app by internet professionals • The legacy Google Analytics will be end-of-life on July 1, 2023 • You can analyze cross platforms usage and reduce duplications • Powered by Google Signals • Di ff erent platform installed as “streams” of events into same GA property
  • 26.
  • 27.
  • 28.
  • 29. Remotely update UI or configs
  • 30.
  • 31. Firebase Remote Config Change behaviors or UI without publishing an app update • It works on native apps and also web! • Basically it just a remotely fetched key-value dictionary • With ability to provide di ff erent value for di ff erent kind of audiences • We actually use it for “lightweight APIs” • Banner / copywriting management for marketing • Dynamically enable features for a speci fi c period of time (e.g. LNY) • Caution: The update might not be real-time. Be careful to add critical logics!
  • 32.
  • 34.
  • 35. Firebase A/B Testing A/B testing for various Firebase features • To use A/B testing, you need Google Analytics • For measure and targeting • Then Firebase A/B testing will help you • Split targets into groups • Run experiments with di ff erent values • Calculate the winning variant
  • 36.
  • 37. Takeaways So many features covered in this session I know… • The must haves • Firebase Crashlytics - Try to make sure you have 99% crash-free sessions • Google Analytics - De-facto standard for app/web analytics • Nice to haves • Firebase Remote Con fi g - Save time APIs for marketing or testing • Firebase A/B Testing - Easy way to do A/B testing right • Others: Depends on your cases
  • 38. What others Firebase can help you? Some advanced use cases • Firebase Messaging • Send push messages • Show in-app prompts • Firebase Authentication • Let user login with email / phone • O ffi cial support Google / Facebook • Community support LINE / ETH • Firebase Test Lab • Real devices on cloud for testing • Firebase Dynamic Links • Shortened URLs • Deferred deep links to your app • Firebase Extensions • Pre-packaged solutions
  • 39. Final remarks As a student developer, please don’t miss some good things • GitHub Student Developer Pack - Free domain / cloud / tools • Google Summer of Code - Learn from open source experts • Google Developer Student Club - Yes, this event • Internship - The best chance to get into dream companies • Graduate level courses - Make you di ff erent than others
  • 40. Q&A