This video is free to watch - hope you enjoy it! If you like what you see, there's a ton more where that came from...

Buy Now

Firebase Functions

Extremely simple to create with NodeJS. Simple to deploy, and fun to use, Firebase functions are incredibly flexible and fun. There are some tricks you need to know, however.

This is premium content - you can own it in just 30 seconds!

Buy Now

More Functions, Emulators and Express!

Since I made this video back in 2016, Firebase has come a very long way. One of the really neat things they added was the ability to tie an Express application (Node web framework) into your functions and tell Firebase hosting that’s where your site lives! This is a “best of both worlds” scenario and amounts to having a virtually free Express app powered by Functions.

Google also released a suite of emulators to help when building out Functions, making testing a bit nicer. Finally, they also have the notion of “callable” functions which can be invoked from the client SDK rather than an HTTP request. Fascinating stuff!

The Code

You can view the code for this video up at GitHub.

Download

The Code

Code for this video (and for the entire series) can be found in the production GitHub repo.

  • Welcome!

    These videos have been 3 years in the making! I started this project in the spring of 2014 with a simple idea: what could I build without having to manage a server? The results were interesting, but not overly compelling. I wanted to SELL THINGS, and doing that by knitting together various services was a pain. Then came serverless and Firebase - let's get started!

  • Introduction

    What is Firebase and why should you care? The whole Serverless thing is interesting, but is it worth doing? We discuss this here.

  • Hosting

    One of the very nice things about Firebase is its hosting service. It's free and comes with SSL to boot. I like to use Middleman to help build the site out, but you don't have to! Use whatever tools you like, and serve the files with firebase serve.

  • The Realtime Database

    We get rolling with our site, building out the initial checkout service while getting to know Firebase.

  • Firebase Functions

    Extremely simple to create with NodeJS. Simple to deploy, and fun to use, Firebase functions are incredibly flexible and fun. There are some tricks you need to know, however.

  • Authentication and Storage

    In this part we tidy things up, plugging in Authentication and hooking our download service into Firebase Storage.

Watch Again

[[prev.title]]

[[prev.summary]]

Next Up

[[next.title]]

[[next.summary]]