Keep 'em Separated: Organizing your Firebase Functions
Вставка
- Опубліковано 10 лют 2025
- So you're starting to build out your Firebase app, and you're adding functions as you go. Great - but isn't that index.js file starting to get a little bit long, ugly, and hard to parse?
Of course it is! Don't worry though, F50 is here to save the day. In this video you'll learn how to quickly separate your functions into separate files, pull them in to your main index.js, and deploy. I'll show you the biggest gotcha about doing this separation thing, too. So won't you join me for this 10 minute extravaganza of programming joy?
***
I'm on a roll, and you are too, beautiful person! The 1000 subscriber goal. is coming along. Won't you join the party? We can't do this without you. Subscribe and be one of the cool kids! C'mon! It's free!
Music: www.bensound.com
#cloudfunctions #firebase #nodejs
That was great. Thanks.
appreciate it, man!
@bum bum sorry, I didn't get it. I've updated the contact info on the channel's About page. Hope I don't get spammed to death ;)
@bum bum customer service ;)
Need a video for Gen2 and Node 18 please :)
gen2 works fine within the same project side by side, and just change the node version to 18 in the package.json. Done. No video necessary.
HI, i understand moving exports into difrient files, but when You deploy functions all source code will upload to each individual functions. So functon 'a' will contain files for function 'b', 'c' .... and so on, while You actually not using theme.
Interesting. I separated the functions into files for organization purposes. Do you have another suggestion?