zach.codes

Share this post

User's avatar
zach.codes
Deploying My First App to Cloud Functions
Copy link
Facebook
Email
Notes
More

Deploying My First App to Cloud Functions

Zach Silveira
Aug 27, 2017
∙ Paid

Share this post

User's avatar
zach.codes
Deploying My First App to Cloud Functions
Copy link
Facebook
Email
Notes
More
Share

This past week I have been building a simple CRUD app for a freelance project. Since this is so small in scope, I decided to use express. A basic REST api was all I needed. When it came to setting up a development environment, I was going to setup a compute instance that had nginx, install node, and all that fun stuff. I realized this would be a cool time to see how hard it is to setup Google's Cloud Functions. It turns out there were only a few gotchas, and after a couple hours I had the whole app up and running without any servers to manage! It's truly awesome. This post is covering how I set this up on Google, but most of it will apply to AWS Lambda or whatever Azure is offering 😜

Export your function

This part sounds like a lot of work. How do you export an express app and have it work without a bunch of code changes? It turns out you can do this with a whole one line code change at the very minimum. This is because when you use Cloud functions that are triggered by an HTTP request…

Keep reading with a 7-day free trial

Subscribe to zach.codes to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Zach Silveira
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More