7 Ways to Deploy a Node.js App

Ғылым және технология

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

Пікірлер: 413

  • @YosepRA
    @YosepRA2 жыл бұрын

    "Server in your garage" I've never been so personally attacked in my life.

  • @jonlothar6126
    @jonlothar61262 жыл бұрын

    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_dev2 жыл бұрын

    “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
    @odddellarobbia42 жыл бұрын

    "You don't need a fuc*in kubernetes" -Sun Tzu,The Art of Deployment

  • @TamDNB
    @TamDNB2 жыл бұрын

    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
    @socketbyte53482 жыл бұрын

    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
    @jefferymuter465911 ай бұрын

    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
    @PRVTCRYP2 жыл бұрын

    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.

  • @darshangowda309
    @darshangowda3092 жыл бұрын

    This was just what I needed! You’re a genius to predict what devs need :P

  • @quarantinecommunity384
    @quarantinecommunity3842 жыл бұрын

    The perfect video that I was looking for! Thank you man

  • @azatecas
    @azatecas2 жыл бұрын

    i have learned so much from this channel and the content just keeps coming

  • @sebosebo4661
    @sebosebo46612 жыл бұрын

    This was a very well explained video, thank you for this, it helped a lot!

  • @flacodoom
    @flacodoom Жыл бұрын

    Another great video! thanks you very much for sharing valuable and concise info

  • @anupamdahal7029
    @anupamdahal70292 жыл бұрын

    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

    11 ай бұрын

    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

    11 ай бұрын

    @@AbhishekKumar-lp5rc he doesn't say that he is not doing though?

  • @gokuldinesh8851
    @gokuldinesh88512 жыл бұрын

    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?

  • @webcodingoprogrammingtips2090
    @webcodingoprogrammingtips20902 жыл бұрын

    Thanks, really cool and useful

  • @muthuaiswaryaaswaminathan4079
    @muthuaiswaryaaswaminathan40792 жыл бұрын

    This was very comprehensive, thanks!

  • @MistaT44
    @MistaT442 жыл бұрын

    Excellent video as always

  • @ExamCluster
    @ExamCluster2 жыл бұрын

    You are a life saver man!

  • @zb3485
    @zb3485 Жыл бұрын

    exactly what i was looking for, thanks

  • @karandewani6614
    @karandewani66142 жыл бұрын

    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!

  • @aadityachandankar7548
    @aadityachandankar754820 күн бұрын

    Thanks, this is exactly what I was looking for

  • @eleah2665
    @eleah26652 жыл бұрын

    Nice summary. Thanks.

  • @nox-freak
    @nox-freak2 жыл бұрын

    I love the node content you create man 🔥

  • @LarsRyeJeppesen
    @LarsRyeJeppesen2 жыл бұрын

    Very informative, Coach

  • @Fireship

    @Fireship

    2 жыл бұрын

    Silver 🥈

  • @renaton3992
    @renaton39922 жыл бұрын

    What a great video!! thx!!

  • @nro337
    @nro3372 жыл бұрын

    Great video!!

  • @waleedahmad2012
    @waleedahmad20122 жыл бұрын

    You're awesome man!

  • @TjSpoonManJacques
    @TjSpoonManJacques2 жыл бұрын

    Thank you for the pointer about updating Node.js - I was 4 versions out dated.

  • @cryptolicious3738
    @cryptolicious37382 жыл бұрын

    sick video bro !

  • @vin5718
    @vin57182 жыл бұрын

    I have been wanting to try app engine flexible, sounds like the thing I needed for now

  • @mmazurovsky_r
    @mmazurovsky_r2 жыл бұрын

    This is fire!

  • @ArtemMELNYK
    @ArtemMELNYK2 жыл бұрын

    Thanks for this video.

  • @klutch4198
    @klutch41982 жыл бұрын

    THE LEGEND RETURNS

  • @DavidDeCorso
    @DavidDeCorso2 жыл бұрын

    Great video 👍

  • @thecashewtrader3328
    @thecashewtrader33282 жыл бұрын

    I love this channel

  • @dr_quic
    @dr_quic2 жыл бұрын

    Well explained 👌👌

  • @deycha1
    @deycha12 жыл бұрын

    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

    11 ай бұрын

    Your comment help me more than this whole 😂video thanks

  • @AssFaceNFT
    @AssFaceNFT2 жыл бұрын

    My absolute legend!!! 🙏🌹🚀

  • @AritroVlogs
    @AritroVlogs2 жыл бұрын

    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

  • @dxfirebase
    @dxfirebase2 жыл бұрын

    Bro, I loved your content. Greetings from Colombia

  • @TheRambo58
    @TheRambo582 жыл бұрын

    Solid video

  • @sebbel3260
    @sebbel3260 Жыл бұрын

    So helpful to those of us who are self taught!

  • @henrugolf
    @henrugolf2 жыл бұрын

    "Server in your garage" is way too accurate

  • @dustindustir521
    @dustindustir5212 жыл бұрын

    very nice thanks

  • @kalokal5812
    @kalokal58122 жыл бұрын

    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 :)

  • @Susul-lj2wm
    @Susul-lj2wm2 жыл бұрын

    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

  • @reservedsnow3224
    @reservedsnow32242 жыл бұрын

    What a timing my man. :-) just when I was searching of node stuff

  • @essentialdang
    @essentialdang9 ай бұрын

    Your channel is so useful. Ordered a premium membership on your site for a month to say thanks

  • @hetuman
    @hetuman2 жыл бұрын

    as a (startup) CTO, the last part is what i do. And it is pretty much thanks for this channel why.

  • @norardz9011
    @norardz9011 Жыл бұрын

    What a video!!!

  • @AnujKaithwas
    @AnujKaithwas10 ай бұрын

    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?

  • @nikolaninkov3341
    @nikolaninkov33412 жыл бұрын

    ty man

  • @FernandoAlfaroM
    @FernandoAlfaroM2 жыл бұрын

    The thumbs-up seems too little for this video. thank you for such a great short explanation.

  • @kbzoncapo777
    @kbzoncapo7772 жыл бұрын

    Giving like for an awesome video but that thumbnail meme is golden, awesome job!

  • @moibe182
    @moibe18210 ай бұрын

    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 🤣

  • @hajimohammed968
    @hajimohammed9682 жыл бұрын

    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.

  • @nimeshganatra9932
    @nimeshganatra9932 Жыл бұрын

    From all the options explained in this video, App Engine seems most convincing to go for.

  • @fabiomoretti613
    @fabiomoretti6132 жыл бұрын

    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 😂

  • @Arabian_Epileptic
    @Arabian_Epileptic2 жыл бұрын

    I love Node JS

  • @vidzpk5144
    @vidzpk51442 жыл бұрын

    Can you do a video on server-side caching services like Redis and also some useful caching use cases?

  • @wingmann3632
    @wingmann3632 Жыл бұрын

    Thank you brojan

  • @LucaHollenbach
    @LucaHollenbach2 жыл бұрын

    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.

  • @SimoneDiBilio1
    @SimoneDiBilio12 жыл бұрын

    brilliant

  • @niggelgame
    @niggelgame2 жыл бұрын

    Could you make a full Kubernetes video? I somehow hoped you will address it (in a limited form) in this 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.

  • @t4m2
    @t4m22 жыл бұрын

    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

  • @abhinav.sharma
    @abhinav.sharma2 жыл бұрын

    Jeff, thanks a 100000000000000 times, was just looking for something like this. None of them match your vibe. 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥

  • @akashthoriya
    @akashthoriya2 жыл бұрын

    Very useful, Please make same for react too.

  • @xenon4602
    @xenon46022 жыл бұрын

    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

  • @CodingPhase
    @CodingPhase2 жыл бұрын

    Nice

  • @ejangi
    @ejangi2 жыл бұрын

    ☁️🏃‍♀️ FTW!! 🔥

  • @kenfeier5542
    @kenfeier55422 жыл бұрын

    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.

  • @sumermuktawat
    @sumermuktawat2 жыл бұрын

    why standard gcp app engine has high latency than heroku free dyno or GCP colud run. do anyone know answer to this.

  • @katenull4122
    @katenull41222 жыл бұрын

    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?

  • @rohankumarpanigrahi7475
    @rohankumarpanigrahi74757 ай бұрын

    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.

  • @nickschmitt8594
    @nickschmitt85942 жыл бұрын

    What are the AWS equivalents of the GCP technologies mentioned?

  • @ismaelmunoz982
    @ismaelmunoz9822 жыл бұрын

    Where is the astrojs portafolio video you we’re going to makeee? I’m really looking forward for that video

  • @sanky369
    @sanky3692 жыл бұрын

    This channel is a real painkiller! All the stuff you need to know without the useless stories~

  • @yahyeabdirashid9716
    @yahyeabdirashid97162 жыл бұрын

    I love this guy background music supper genius

  • @74Bagas
    @74Bagas2 жыл бұрын

    i just did thid for my exam. then this video,, nice !!!

  • @raulmartina8781
    @raulmartina87812 жыл бұрын

    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.

  • @WOUUUTT
    @WOUUUTT2 жыл бұрын

    I need this VScode theme!

  • @sebastianburger2578
    @sebastianburger25782 жыл бұрын

    Thanks

  • @Fireship

    @Fireship

    2 жыл бұрын

    Gold 🥇

  • @RyanTipps
    @RyanTipps2 жыл бұрын

    what is the difference between App Engine Flex and Cloud Run ? Does Cloud Run allow you to provide an actual image rather than just a docker file?

  • @BenjaminMaggi
    @BenjaminMaggi2 жыл бұрын

    I've never seen a CTO do a deploy in any language or platform.

  • @gowthamkumar4929
    @gowthamkumar49292 жыл бұрын

    I like the template by the way

  • @CihatUysal07
    @CihatUysal072 жыл бұрын

    I love deploying machine learning apps using Cloud Run

  • @vanshukakkar7
    @vanshukakkar72 жыл бұрын

    I heard somebody say, "WHAT A GREAT F*N VIDEO"

  • @nitin-code-comedy
    @nitin-code-comedy2 жыл бұрын

    For me having VM on cloud just does the trick.

  • @andrewc8125
    @andrewc81252 жыл бұрын

    Amazing…

  • @user-rc2nt1tb2u
    @user-rc2nt1tb2u2 жыл бұрын

    I need to know what do use to create these amazing videos 🥺🙏🏼 I can't find a good video editors.

  • @FianoGostaDeQueijo
    @FianoGostaDeQueijo2 жыл бұрын

    Wow, I was looking for this 1h ago...

  • @cywestbrook7448
    @cywestbrook74482 жыл бұрын

    If you are gonna go for serverless, I like Vercel because it's simpler to use than Google Cloud

  • @codeaperture

    @codeaperture

    2 жыл бұрын

    What of firebase functions? Netlify functions?

  • @canvaapplessons1224

    @canvaapplessons1224

    2 жыл бұрын

    Have tried it. Has a problem of cold start if I can recall correctly. And one of them has stopped the free tier I think

  • @lardosian

    @lardosian

    2 жыл бұрын

    AWS Amplify is a good option as well

  • @miguelklappes8525

    @miguelklappes8525

    2 жыл бұрын

    @@canvaapplessons1224 Go for Cloudflare Functions, no cold start

  • @nick-dev
    @nick-dev2 жыл бұрын

    which icon pack do you use in vs code?

  • @surajvijay1937
    @surajvijay19372 жыл бұрын

    could someone tell(or suggest any video) how to deploy and react app along with node js on our own server.

  • @whatthefunction9140
    @whatthefunction91402 жыл бұрын

    Cloud run rocks

  • @Aaron-ot5qt
    @Aaron-ot5qt2 жыл бұрын

    Wow cool

  • @LouisX2328
    @LouisX23282 жыл бұрын

    Pretty sure websocket are not supported in GAE standard environment, it's only supported in flexible environment

  • @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?

Келесі