Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Create service with only Firebase
Search
kohemon
July 04, 2019
Programming
17
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Create service with only Firebase
We can create service with only Firebase!
kohemon
July 04, 2019
More Decks by kohemon
See All by kohemon
Welcome Sifn in with Apple
kohei1218
0
17
Other Decks in Programming
See All in Programming
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
180
ChromeでローカルLLM
ryu1013
0
140
AmebaブログはKMPから卒業します
kmars0605
0
190
コードで差別化できない時代の ソフトウェアエンジニアリング / Software Engineering in an Era Where Code Doesn’t Differentiate
kishida
2
180
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
170
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
120
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
370
Kotlinの15年とServer-Side Kotlin
n_takehata
1
150
Agents on Rails - Rails at Scale 2026
irinanazarova
0
560
RAG の “R” を Swift で覗いてみる 〜「意味から探す」検索の仕組み〜
nao_randd
0
160
dotNET_vulnclicker_intro.pdf
deka_morita
0
140
AWSに止められる覚悟してますか?
morizo_1984
2
540
Featured
See All Featured
For a Future-Friendly Web
brad_frost
184
10k
Context Engineering - Making Every Token Count
addyosmani
9
1.2k
Visualization
eitanlees
153
17k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
410
Discover your Explorer Soul
emna__ayadi
2
1.3k
Music & Morning Musume
bryan
48
7.4k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Color Theory Basics | Prateek | Gurzu
gurzu
1
490
Rebuilding a faster, lazier Slack
samanthasiow
85
9.7k
So, you think you're a good person
axbom
PRO
2
2.2k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
Transcript
create service with only firebase 7/4 PORT Firebase × Beginner
Proifle Struct Profile { let name = "Kohei Saito" let
company = "NewsPicks" let developerSns = "kohei1218" let hobby = "snowboard" }
7/29 (月) Firebase x NewsPicks開催決定!!! NewsPicksのFirebaseの詳しい話はこちらで
バックエンドをFirebaseだけでマッチングアプリを作った話
主な要件 ・SignIn、SignUp ・リアルタイムチャット ・検閲
SignIn, SignUp ・SMS 独自実装だと少し面倒だな 外部サービス使うのもお金かかるし複雑になるし・・・ ・メールアドレス メールアドレスの認証も実装しないといけない・・・ ・それにセキュリティのことも考えないと・・・
Firebaseに任せよう
Firebase Authentication
what`s Firebase Authentication ・複雑なAuth認証を数行で実現することができる。 ・SMSの認証コードやメールアドレスの認証、パスワードリセットまでも数行のコードで行 うことができる。 ・Facebook、Twitter、GoogleなどのSNSのログインにも対応
メールアドレスでのSignIn, SignUp
SMS
リアルタイムチャット ・非同期通信でのリアルタイムチャットの実装 socket通信とかにしたらサーバー側の負担やばそう・・・ ・Push通知 これも自前でサーバー建てるのしんどいし、外部サービス使うのか・・・ これ工数いくらかかるんだ・・・
Firebaseに任せよう
Cloud Firestore
what`s Cloud Firestore ・リアルタイム通信を得意とするスケーラブルなデータベース ・スケールするまで無料で使用できる ・オフラインの状況下でもオンラインのように振る舞える ・セキュリティや障害対応を強く意識しなくていい
チャットの構成 Room Transcripts Viewer Transcript Transcript Transcript User User 監視
Transcriptsの監視
検閲 ・30分に一度外部のAPIに検閲対象のデータを取得して送信 ・同時に前回送った情報の検閲結果を取得して保存 jsonで送り、結果もjsonで取得 これはさすがにサーバー建ててバッジ処理か・・?
Firebaseに任せよう
Cloud Functions
What`s Cloud Functions ・GCP上でJavaScript、TypeScriptの関数を実行できる ・トリガーはhttpやFireStoreへの書き込み、定期実行など様々 ・JavaScriptかTypeScriptで記述 ・チャットのPush通知なんかも送れる
Requestの定期実行
まとめ ・Firebaseのみでも十分にサービスは作ることができた!(しかもハイスピード) ・クライアントエンジニアの負担は増える(DB設計やQuery、CloudFunctionsなど) ・ただサーバーサイドエンジニアをジョインするよりははるかに効率的
Ballcapに感謝 https://github.com/1amageek/Ballcap-iOS
None
もう一回宣伝 7/29 (月) Firebase x NewsPicks開催決定!!! NewsPicksのFirebaseの詳しい話はこちらで
Thanks