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

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!

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

Buy Now

Welcome, and Thanks!

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.

And then came AWS Lambda. It looked fascinating, but required a whole lot of knowledge about AWS. Then, in March 2017 Firebase launched Firebase Functions and I was all over it. The result is what you see here.

I put a lot of love into these videos and a whole lot of time. I hope it shows, and I hope you really enjoy it! You have the code that goes along with the videos, and I need to walk you through setting it all up before you dig in and try to code along with me.

Getting Set Up

The web site that you see in the video was built with Middleman, a static site generator that is built with Ruby. You don’t need to use it. I’ve prebuilt the site for you, so instead of installing and starting up Middleman you can use this:

firebase serve

…which will load the prebuilt site (located in /build) and serve it locally. If you want to use Middleman, go for it and follow the install instructions on their site.

Settings

You’ll quickly notice, if you run the code, that much of it won’t work right away. This is because you need to add some information first! Specifically you need to…

  • Sign up with Firebase and create a project. Once you do that you’ll need to add your settings as you see in the video.
  • If you want to follow along with the Drip demo, you’ll need to sign up with them too. It’s free and very, very worth it.
  • I use dotenv, which is a really easy Node configuration tool that lets you set environmental variables within your project. You might see me using that at certain points in the video.

… And Finally: A Favor

I know that there’s a general belief that if you put it online, expect it to be shared. As you’re watching these videos I would ask you to consider their quality. It took me months to create them, and it’s largely because I’m a stickler for creating the best experience possible. I can’t do that for free. So… please: reconsider before sharing these things. I’d like to keep making these productions!

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]]