Fireship · @fireship
Firebase Extensions Quickstart
Uploaded September 26, 2019 · Length 6:42
Summary
firebase extensions quickstart tutorial: how to use firebase extensions to add features like image resizing, translation, and distributed counters to your app without writing code.
- firebase extensions
- firebase quickstart
- image resizing
- translation api
- distributed counters
- firebase functions
- cloud storage
- firestore
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
today at firebase summit a big new
- 0:01
feature was announced firebase
- 0:03
extensions imagine if the cloud had
- 0:05
something like a wordpress plug-in
- 0:06
system where you can install or opt in
- 0:08
to specific features based on the needs
- 0:10
of your application and with this
- 0:12
initial release we have nine plugins
- 0:13
that handle things like image resizing
- 0:15
distributed counters transactional email
- 0:17
and more and once again firebase has
- 0:20
made a bunch of my past videos obsolete
- 0:22
I'm not too english Masshole career so
- 0:24
today i want to show you how to not
- 0:26
write code by using firebase extensions
- 0:28
if you're new here like and subscribe
- 0:30
and consider becoming a pro member at
- 0:31
bioship i/o and if you're serious about
- 0:33
building apps on the firebase platform
- 0:35
to get started you'll need to have a
- 0:36
firebase project and if you go down here
- 0:38
to the bottom you'll see a new option
- 0:40
for extensions let's go ahead and
- 0:42
install the first one we see to resize
- 0:44
images now unfortunately for me about a
- 0:46
year ago I created a video about
- 0:48
resizing images with a cloud function
- 0:50
but this extension provides the exact
- 0:52
same functionality with no effort on my
- 0:54
part and it's tested and maintained by
- 0:56
these smart people at Google let's go
- 0:58
ahead and click install and you'll see
- 1:00
it takes us to a page to configure the
- 1:01
extension the first thing it'll have you
- 1:03
do is review the architecture or API is
- 1:06
enabled by this extension when it comes
- 1:08
to image resizing you'll need to have a
- 1:09
cloud storage bucket and then a cloud
- 1:11
function to handle the resizing after a
- 1:14
file is uploaded to that bucket go ahead
- 1:16
and click Next and then it will have you
- 1:18
review the access granted to the
- 1:19
extension firebase will automatically
- 1:21
create the appropriate service account
- 1:23
that has IM roles assigned for whatever
- 1:25
resources this extension needs in the
- 1:28
third step is where we configure and
- 1:29
customize the behavior of the extension
- 1:31
in this case we'll go ahead and have it
- 1:33
generate thumbnails for 200 500 and 1000
- 1:37
pixel sizes and we'll go ahead and
- 1:39
specify a directory in the bucket named
- 1:41
thumbs which is where the thumbnails
- 1:42
will be saved it will take a few minutes
- 1:44
to install because what it's doing under
- 1:46
the hood is deploying a cloud function
- 1:48
to your project after it's complete
- 1:50
you'll be able to review the
- 1:51
configuration details and then if you go
- 1:53
to the functions tab you'll see that
- 1:54
cloud function deployed in your
- 1:56
functions list and if you're really
- 1:58
interested in how the function works
- 1:59
under the hood you can go to the GCP


