7 Ways to Deploy a Node.js App

  Рет қаралды 473,757

Fireship

Fireship

Күн бұрын

7 unique ways to deploy a server-side app to the cloud. Explore the tradeoffs between each node.js deployment option on Google Cloud Platform. fireship.io/tags/node/
#node #webdev #top7
This video is NOT sponsored.
🔗 Resources
Google Cloud cloud.google.com/gcp
Cloud Run Tutorial fireship.io/lessons/firebase-...
Docker in 100 Seconds • Docker in 100 Seconds
Node.js Docs nodejs.org/en/
📚 Chapters
00:00 Deployment ain't easy
00:42 Node.js App Tour
01:40 1. Server in your Garage
02:47 2. Cloud VM
04:06 3. App Engine Standard
05:45 4. App Engine Flex
06:23 5. Kubernetes
07:01 6. Cloud Functions
08:17 7. Cloud Run
🤓 Install the quiz app
iOS itunes.apple.com/us/app/fires...
Android play.google.com/store/apps/de...
🔥 Watch more with Fireship PRO
Upgrade to Fireship PRO at fireship.io/pro
Use code lORhwXd2 for 25% off your first payment.
🎨 My Editor Settings
- Atom One Dark
- vscode-icons
- Fira Code Font

Пікірлер: 412
@YosepRA
@YosepRA 2 жыл бұрын
"Server in your garage" I've never been so personally attacked in my life.
@jonlothar6126
@jonlothar6126 2 жыл бұрын
I clicked faster than your server could give a response 😂
@ashiksaleem360
@ashiksaleem360 2 жыл бұрын
🏆
@KangJangkrik
@KangJangkrik 2 жыл бұрын
He only send "love" but no words /sed/
@wils-caru
@wils-caru 2 жыл бұрын
only because of the cold start
@rabik_dev
@rabik_dev 2 жыл бұрын
“You don’t f**king need kubernetes “ - a wise man.
@anushibinj
@anushibinj 2 жыл бұрын
Perhaps Sun Tzu
@rabik_dev
@rabik_dev 2 жыл бұрын
@@anushibinj or perhaps Jeff🤔
@mohammed.larabi
@mohammed.larabi 2 жыл бұрын
This is the best advice from this video.
@alexrenoki8366
@alexrenoki8366 2 жыл бұрын
@@rabik_dev definitely NOT Kelsey Hightower
@georgeorwell4891
@georgeorwell4891 2 жыл бұрын
-Sun Zoo, The Art Of War
@odddellarobbia4
@odddellarobbia4 2 жыл бұрын
"You don't need a fuc*in kubernetes" -Sun Tzu,The Art of Deployment
@TamDNB
@TamDNB 2 жыл бұрын
Fireship, sometimes I feel like you are reading my mind.
@teocardoso7237
@teocardoso7237 2 жыл бұрын
I just finish my node project and I need to deploy, I stop to watch a random video and this appears. Weird
@TianyuQi
@TianyuQi 2 жыл бұрын
the power *BIG DATA PROFILISATION* (jk)
@Bejeerk
@Bejeerk 2 жыл бұрын
All the time, always in sync with what I'm doing!
@gym1champ
@gym1champ 2 жыл бұрын
YES
@delfish41
@delfish41 2 жыл бұрын
I was just googling about hosting a node js project and here comes fireship :)
@socketbyte5348
@socketbyte5348 2 жыл бұрын
Currently working with Firebase cloud functions and I love it. Cold starts are not really an issue for our implementation and ease of use is just incredible. Especially schedulers!
@jefferymuter4659
@jefferymuter4659 9 ай бұрын
I loved this video for the same reason I hate most tutorials. They teach you nothing about problem solving, but you focused on that and I loved it!
@PRVTCRYP
@PRVTCRYP 2 жыл бұрын
Me being an actual CTO at a Company and watching this*
@cja1218
@cja1218 2 жыл бұрын
Same and one using cloud run I can confirm this video checks out.
@saurabhmehta7681
@saurabhmehta7681 2 жыл бұрын
Hire me, I'm something of a developer myself
@user-cv6kf4bk1q
@user-cv6kf4bk1q 2 жыл бұрын
@@saurabhmehta7681 what did you make
@HandledToaster2
@HandledToaster2 2 жыл бұрын
Good for you.
@quarantinecommunity384
@quarantinecommunity384 2 жыл бұрын
The perfect video that I was looking for! Thank you man
@sebosebo4661
@sebosebo4661 2 жыл бұрын
This was a very well explained video, thank you for this, it helped a lot!
@darshangowda309
@darshangowda309 2 жыл бұрын
This was just what I needed! You’re a genius to predict what devs need :P
@azatecas
@azatecas 2 жыл бұрын
i have learned so much from this channel and the content just keeps coming
@anupamdahal7029
@anupamdahal7029 2 жыл бұрын
I have learnt a lot of new things that I have never worked with from your videos, like AWS, nginx, kubernetes, graphQL(and other dbs), typescript to name a few. One thing that I don't understand is how they work together. I would really love to see a video where you design a mock system using all of these (and possibly more) and explain each of their roles and why you chose it (kinda like your reverse-cloud migration video using raspberry pi). Whenever I think of a software architecture I think of them as several layers that interact with each other. However, I am unable to assign which layer what belongs to by watching a stand alone tutorial about a single tool. Btw, I am a college senior pursuing CS major and I love your content. Thanks for all the awesome contents.
@pookiepats
@pookiepats Жыл бұрын
graphql is not a db
@AbhishekKumar-lp5rc
@AbhishekKumar-lp5rc 10 ай бұрын
You are doing it wrong. Don't just learn. Learning should only come before doing. Do more. Here's a quote for you from Chanakya. "Action protects Knowledge" Without action you will forget everything.
@oofie4660
@oofie4660 9 ай бұрын
@@AbhishekKumar-lp5rc he doesn't say that he is not doing though?
@muthuaiswaryaaswaminathan4079
@muthuaiswaryaaswaminathan4079 Жыл бұрын
This was very comprehensive, thanks!
@gokuldinesh8851
@gokuldinesh8851 2 жыл бұрын
I'm currently in a startup and all the developers are just starting out on coding including myself. I was assigned as the CTO and I was searching like crazy for finding a suitable deployment method for our application. I'll make sure to buy your merch once I get my 1st sallery. Thanks for helping out ❤️
@WeatherWX
@WeatherWX 2 жыл бұрын
Good Luck!
@gokuldinesh8851
@gokuldinesh8851 2 жыл бұрын
Thankyou ❤️
@JOHNSMITH-ve3rq
@JOHNSMITH-ve3rq 2 жыл бұрын
Is this for real?
@ryank.6033
@ryank.6033 2 жыл бұрын
How has it been?
@kerubi5s
@kerubi5s 2 жыл бұрын
What's a good environment for deploying a startup website?
@flacodoom
@flacodoom Жыл бұрын
Another great video! thanks you very much for sharing valuable and concise info
@karandewani6614
@karandewani6614 2 жыл бұрын
This is something I never knew I needed! Great work, Loved the video. Can you make a similar video about AWS? It would be so much useful!
@TjSpoonManJacques
@TjSpoonManJacques 2 жыл бұрын
Thank you for the pointer about updating Node.js - I was 4 versions out dated.
@vin5718
@vin5718 2 жыл бұрын
I have been wanting to try app engine flexible, sounds like the thing I needed for now
@kalokal5812
@kalokal5812 2 жыл бұрын
Since you put NestJs in one of your recent community post, I was wondering if you intend on making a separate video on Nest in the future. I know there is already one on "Nest on Cloud Functions", but one just about Nest would be nice. Would love to see my favourite backend framework get some more attention :)
@webcodingoprogrammingtips2090
@webcodingoprogrammingtips2090 2 жыл бұрын
Thanks, really cool and useful
@zb3485
@zb3485 Жыл бұрын
exactly what i was looking for, thanks
@MistaT44
@MistaT44 2 жыл бұрын
Excellent video as always
@andresdiazlopez5365
@andresdiazlopez5365 Жыл бұрын
Bro, I loved your content. Greetings from Colombia
@deycha1
@deycha1 2 жыл бұрын
I'm an experienced contractor developer and i worked with a lot of large global companies, some are household names. Usually i jump in to fix shit mid-way through the project. And i've seen overengineered shit a LOT in the last few years, it became a trend. There are whole teams of operations/infrastructure people building kubernetes stuff, manually self hosting every single open source software, building complex custom CI/CD pipelines and all the other fancy shit. And the funniest thing is that it's some internal or private app for like 100 or 1000 users?!?!? I swear to god most of that software would run just fine on 10 usd/mo droplet (VM) on digital ocean, with no complex configuration and deployment process. And the saddest thing is that big ops teams with complex software and processes for an app with 1000 users just create more problems, it doesn't improve the overall avilability and it doesn't make anyone happier, bugs still occur, deployment errors still happen (of course they will when you have 10 step pipeline installing shit ton of software and depending on billions of other things)
@lardosian
@lardosian 2 жыл бұрын
Would love to hear more stories!!!
@arbazkdr136
@arbazkdr136 9 ай бұрын
Your comment help me more than this whole 😂video thanks
@AnujKaithwas
@AnujKaithwas 8 ай бұрын
Hey Jeff, Can you create an updated version of this video with AWS and GCP in comparison to edge functions and the other cool tech that can help a startup manage their backends optimally and efficiently?
@henrugolf
@henrugolf 2 жыл бұрын
"Server in your garage" is way too accurate
@nox-freak
@nox-freak 2 жыл бұрын
I love the node content you create man 🔥
@eleah2665
@eleah2665 2 жыл бұрын
Nice summary. Thanks.
@sebbel3260
@sebbel3260 Жыл бұрын
So helpful to those of us who are self taught!
@ExamCluster
@ExamCluster 2 жыл бұрын
You are a life saver man!
@kenfeier5542
@kenfeier5542 2 жыл бұрын
Question: I was debating on buying your pro courses. I assume your course would show how to do this in more detail? I would love to learn how to deploy my Node projects knowing all my options and risks.
@reservedsnow3224
@reservedsnow3224 2 жыл бұрын
What a timing my man. :-) just when I was searching of node stuff
@LarsRyeJeppesen
@LarsRyeJeppesen 2 жыл бұрын
Very informative, Coach
@Fireship
@Fireship 2 жыл бұрын
Silver 🥈
@klutch4198
@klutch4198 2 жыл бұрын
THE LEGEND RETURNS
@nimeshganatra9932
@nimeshganatra9932 11 ай бұрын
From all the options explained in this video, App Engine seems most convincing to go for.
@cryptolicious3738
@cryptolicious3738 2 жыл бұрын
sick video bro !
@LucaHollenbach
@LucaHollenbach 2 жыл бұрын
Great video Jeff! Is there actually a way to avoid/improve those cold starts when deploying your app on the cloud? I remember having this exact issue when I first deployed an SSR App on Firebase. This long initial page load obviously increases the bounce rate of users enormously.
@MartinOmander
@MartinOmander 2 жыл бұрын
Use Cloud Run and set min-instances to 1. That's what I do for my service which suggests word completions as the user is typing. That service has to be very fast for all users all the time.
@fabiomoretti613
@fabiomoretti613 2 жыл бұрын
Nice video! Had been going from cloud functions to cloud run and now to kubernetes... but I think I won't try the other options especially the garage server 😂
@essentialdang
@essentialdang 7 ай бұрын
Your channel is so useful. Ordered a premium membership on your site for a month to say thanks
@hetuman
@hetuman 2 жыл бұрын
as a (startup) CTO, the last part is what i do. And it is pretty much thanks for this channel why.
@FernandoAlfaroM
@FernandoAlfaroM 2 жыл бұрын
The thumbs-up seems too little for this video. thank you for such a great short explanation.
@hajimohammed968
@hajimohammed968 2 жыл бұрын
hey jeff, thanks for this video. can you do a video about connecting databases to deployed API's on gcloud? like a mongodb DB hooked up to an API and deployed to gcloud. piecing things together.
@moibe182
@moibe182 8 ай бұрын
hahha this videos are great I love them ! fun and educational. I won't deploy locally cause I'll need an international real state portafolio 🤣
@waleedahmad2012
@waleedahmad2012 2 жыл бұрын
You're awesome man!
@AritroVlogs
@AritroVlogs 2 жыл бұрын
2:32 I think you can use a dynamic DNS service in case if your ISP doesn't provide a static IP to you
@FaisalAfroz
@FaisalAfroz 2 жыл бұрын
@@pepetheweedsmokingfrog4916 Yeah but they don't support free TLD like .tk, .ga, .ml
@abdullahahmed7781
@abdullahahmed7781 2 жыл бұрын
@@FaisalAfroz use a CNAME record in your dns config to point to the dynamic address ....
@miguelklappes8525
@miguelklappes8525 2 жыл бұрын
@@FaisalAfroz Buy a domain at $1 for the first year
@kyedav
@kyedav 2 жыл бұрын
@@FaisalAfroz they do support them tld's. You just have to manually add them instead of letting it automatically do it for you.
@levk4195
@levk4195 2 жыл бұрын
That won't work if you have dynamic ip and are behind NAT, since the packet IP will get transformed and the route back to your pc/server will be lost
@dr_quic
@dr_quic 2 жыл бұрын
Well explained 👌👌
@ArtemMELNYK
@ArtemMELNYK 2 жыл бұрын
Thanks for this video.
@katenull4122
@katenull4122 2 жыл бұрын
6:56 - By saying 'expensive' out loud, are you also referring to the complexity cost as written on screen? Or are the actual issues that can arise from using Kubernetes on a small-scale project?
@renaton3992
@renaton3992 Жыл бұрын
What a great video!! thx!!
@Susul-lj2wm
@Susul-lj2wm 2 жыл бұрын
i personally love the "server in your own garage" deployment. Its esentially free if you ignore electricity (or let someone else pay that ;P) and use hardware you already have lying around. Youll need a new computer every few years to run highly demanding software and instead of throwing the old one out, you can install a lightweight, headless linux distro. The manual setup isnt actually all that bad if you make sure to install utilities that automate stuff for you!
@dhidhi1000
@dhidhi1000 Жыл бұрын
it's good for hobby
@thecashewtrader3328
@thecashewtrader3328 2 жыл бұрын
I love this channel
@DavidDeCorso
@DavidDeCorso 2 жыл бұрын
Great video 👍
@axa993
@axa993 2 жыл бұрын
Hey mate love ya quick question: why did your Redux video disappear?
@nro337
@nro337 2 жыл бұрын
Great video!!
@t4m2
@t4m2 2 жыл бұрын
You should look at something like caprover we use it to roll our own paas easy command line deployments and lots of flexibility with docker images too
@vidzpk5144
@vidzpk5144 2 жыл бұрын
Can you do a video on server-side caching services like Redis and also some useful caching use cases?
@mmazurovsky_r
@mmazurovsky_r 2 жыл бұрын
This is fire!
@AssFaceNFT
@AssFaceNFT Жыл бұрын
My absolute legend!!! 🙏🌹🚀
@user-rc2nt1tb2u
@user-rc2nt1tb2u 2 жыл бұрын
I need to know what do use to create these amazing videos 🥺🙏🏼 I can't find a good video editors.
@niggelgame
@niggelgame 2 жыл бұрын
Could you make a full Kubernetes video? I somehow hoped you will address it (in a limited form) in this video?
@kbzoncapo777
@kbzoncapo777 2 жыл бұрын
Giving like for an awesome video but that thumbnail meme is golden, awesome job!
@74Bagas
@74Bagas 2 жыл бұрын
i just did thid for my exam. then this video,, nice !!!
@rohankumarpanigrahi7475
@rohankumarpanigrahi7475 5 ай бұрын
Personal opinion AWS Cloud : works to your liking , amazing cli access and tools but absolute sucker UI for the dashboard , finding your way around takes some time. Azure : for me it sucks but organisations that need security often look towards azure.Nothing more to say Google Cloud : super easy to pickup , a very fancy UI , Deprecated docs often and when you go deep there is almost always something that's in a black box you can't control and then you either switch to AWS /Azure.
@TheRambo58
@TheRambo58 2 жыл бұрын
Solid video
@waelgh4307
@waelgh4307 Жыл бұрын
Thanks for the information, but I expected also to know about Heroku, the DigiralOcean App platform, Railway, and others. This video may deserve a remake.
@akashthoriya
@akashthoriya 2 жыл бұрын
Very useful, Please make same for react too.
@ismaelmunoz982
@ismaelmunoz982 2 жыл бұрын
Where is the astrojs portafolio video you we’re going to makeee? I’m really looking forward for that video
@yahyeabdirashid9716
@yahyeabdirashid9716 2 жыл бұрын
I love this guy background music supper genius
@Arabian_Epileptic
@Arabian_Epileptic 2 жыл бұрын
I love Node JS
@abhinav.sharma
@abhinav.sharma 2 жыл бұрын
Jeff, thanks a 100000000000000 times, was just looking for something like this. None of them match your vibe. 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
@dustindustir521
@dustindustir521 2 жыл бұрын
very nice thanks
@nickschmitt8594
@nickschmitt8594 2 жыл бұрын
What are the AWS equivalents of the GCP technologies mentioned?
@sanky369
@sanky369 2 жыл бұрын
This channel is a real painkiller! All the stuff you need to know without the useless stories~
@wingmann3632
@wingmann3632 Жыл бұрын
Thank you brojan
@CihatUysal07
@CihatUysal07 2 жыл бұрын
I love deploying machine learning apps using Cloud Run
@Root3264
@Root3264 2 жыл бұрын
I feel like if I watched and learned what you do in all your videos I would become a really competent coder. Also my head would probably explode.
@raulmartina8781
@raulmartina8781 2 жыл бұрын
Can you make a video on how to deploy a REACT App? I have a Typescript backend in a container and are currently looking how to get my react app in the container.
@SimoneDiBilio1
@SimoneDiBilio1 2 жыл бұрын
brilliant
@ejangi
@ejangi 2 жыл бұрын
☁️🏃‍♀️ FTW!! 🔥
@arunjoshi7885
@arunjoshi7885 2 жыл бұрын
plz make a video on SSL and YAML , thanks
@pukarsharma8740
@pukarsharma8740 2 жыл бұрын
Will there be any video related to rust and rocket/actix web? I wish i could learn from him... But something more than just "100 seconds"
@muhammadaamirkhan9185
@muhammadaamirkhan9185 10 ай бұрын
I am a big fan of your videos. I am Ruby on Rails developer, kindly make some videos on that too if possible.. Will be waiting for that. Thanks
@snehel1586
@snehel1586 2 жыл бұрын
from backend to devops stuff.... wow 😳
@norardz9011
@norardz9011 Жыл бұрын
What a video!!!
@nitin-code-comedy
@nitin-code-comedy 2 жыл бұрын
For me having VM on cloud just does the trick.
@nikolaninkov3341
@nikolaninkov3341 2 жыл бұрын
ty man
@gowthamkumar4929
@gowthamkumar4929 2 жыл бұрын
I like the template by the way
@WOUUUTT
@WOUUUTT 2 жыл бұрын
I need this VScode theme!
@fruitfcker5351
@fruitfcker5351 2 жыл бұрын
02:33 Not exactly screwed. You can use dynamic DNS.
@xXAtom11Xx
@xXAtom11Xx Жыл бұрын
I have a question, I have a git repo and I want to deploy in a vm, how do I handle new code added to the main repo, is there any better way to re-deploy the new version of api besides logging to the VM and running git pull?
@lavisharma3210
@lavisharma3210 2 жыл бұрын
Exactly what I was looking for, at the right time
@kjn5991
@kjn5991 2 жыл бұрын
What if I wan't to deploy Node + Express app to multiple client devices? Like 30 or 50 Raspberry Pi's which act as device controllers? Are there any platforms where you can register the client devices (with IP-address or some authentication token) and then deploy to all of them at the same time?
@xenon4602
@xenon4602 2 жыл бұрын
Hey Jeff, is there going to be a NestJS full tutorial in the future? kinda like Next.js 10 min video
@-parrrate
@-parrrate 2 жыл бұрын
nice thing about JS frameworks is that you can misspell the name, and it'll still be the name of JS framework
@XRoydX
@XRoydX 2 жыл бұрын
@@-parrrate you made my day
@soulninjadev
@soulninjadev 2 жыл бұрын
what is nest js ;- do u mean next or nuxt
@soulninjadev
@soulninjadev 2 жыл бұрын
@@-parrrate 😂😂😂
@xenon4602
@xenon4602 2 жыл бұрын
@@soulninjadev NestJS is backend Javascript framework. I didnt misspelled it smh
@sumermuktawat
@sumermuktawat 2 жыл бұрын
why standard gcp app engine has high latency than heroku free dyno or GCP colud run. do anyone know answer to this.
@FianoGostaDeQueijo
@FianoGostaDeQueijo 2 жыл бұрын
Wow, I was looking for this 1h ago...
@Creamworks
@Creamworks 2 жыл бұрын
Any chance for a Nuxt.js video?
@v01tagex
@v01tagex 2 жыл бұрын
This was great. I am struggling to do the same with AWS could you make a video on that?
@lardosian
@lardosian 2 жыл бұрын
Check out foobar channel, her AWS Amplify CICD tutorial got me up and running with a dev, staging and production project, works like a charm too.
@alisadiq3774
@alisadiq3774 2 жыл бұрын
I can help you
@rosescott3193
@rosescott3193 2 жыл бұрын
INSTALL SPYWARES AND BUGS IN YOUR SPOUSES CELL PHONE OR ANY TARGETS ACCOUNT SEARCH *""HACKLORD TOM""* PAGË ŌN FĀCËBooK!!. HE HELPED ME BEFORE..
@rosescott3193
@rosescott3193 2 жыл бұрын
INSTALL SPYWARES AND BUGS IN YOUR SPOUSES CELL PHONE OR ANY TARGETS ACCOUNT SEARCH *""HACKLORD TOM""* PAGË ŌN FĀCËBooK!!. HE HELPED ME BEFORE..
@SaintHanappi
@SaintHanappi 2 жыл бұрын
Jesus Christ. I love your contents so far. This one opened my eyes how far away I am. Didn't understand a word. 🤣😇. Anyway. Looking forward to a long long way to go (learn). Thx for your content, Sir
@vanshukakkar7
@vanshukakkar7 2 жыл бұрын
I heard somebody say, "WHAT A GREAT F*N VIDEO"
Why did my side-hustle fail? How to validate business ideas
8:26
NO NO NO YES! (50 MLN SUBSCRIBERS CHALLENGE!) #shorts
00:26
PANDA BOI
Рет қаралды 72 МЛН
Маленькая и средняя фанта
00:56
Multi DO Smile Russian
Рет қаралды 3,3 МЛН
одни дома // EVA mash @TweetvilleCartoon
01:00
EVA mash
Рет қаралды 6 МЛН
React Native vs Flutter - I built the same chat app with both
10:12
Raspberry Pi versus AWS // How to host your website on the RPi4
8:39
7 tech leaders who ended up in prison
5:25
Fireship
Рет қаралды 511 М.
the new PS4 jailbreak is sort of hilarious
12:21
Low Level Learning
Рет қаралды 39 М.
How to get rich as a solo software developer - The Ultimate Guide
8:51
How I deploy serverless containers for free
6:33
Beyond Fireship
Рет қаралды 376 М.
NEW GPT-4o: My Mind is Blown.
6:28
Joshua Chang
Рет қаралды 466 М.
this is why you're addicted to cloud computing
5:25
Fireship
Рет қаралды 789 М.
Эволюция телефонов!
0:30
ТРЕНДИ ШОРТС
Рет қаралды 5 МЛН
APPLE УБИЛА ЕГО - iMac 27 5K
19:34
ЗЕ МАККЕРС
Рет қаралды 97 М.
APPLE УБИЛА ЕГО - iMac 27 5K
19:34
ЗЕ МАККЕРС
Рет қаралды 97 М.
🤯Самая КРУТАЯ Функция #shorts
0:58
YOLODROID
Рет қаралды 3,6 МЛН
Переходник для IPhone • 181649538                         Делюсь обзорами в профиле @lykofandrei
0:15
3D printed Nintendo Switch Game Carousel
0:14
Bambu Lab
Рет қаралды 2,5 МЛН