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
"Server in your garage" I've never been so personally attacked in my life.
I clicked faster than your server could give a response 😂
@ashiksaleem360
2 жыл бұрын
🏆
@KangJangkrik
2 жыл бұрын
He only send "love" but no words /sed/
@wils-caru
2 жыл бұрын
only because of the cold start
“You don’t f**king need kubernetes “ - a wise man.
@anushibinj
2 жыл бұрын
Perhaps Sun Tzu
@rabik_dev
2 жыл бұрын
@@anushibinj or perhaps Jeff🤔
@mohammed.larabi
2 жыл бұрын
This is the best advice from this video.
@alexrenoki8366
2 жыл бұрын
@@rabik_dev definitely NOT Kelsey Hightower
@georgeorwell4891
2 жыл бұрын
-Sun Zoo, The Art Of War
"You don't need a fuc*in kubernetes" -Sun Tzu,The Art of Deployment
Fireship, sometimes I feel like you are reading my mind.
@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
2 жыл бұрын
the power *BIG DATA PROFILISATION* (jk)
@Bejeerk
2 жыл бұрын
All the time, always in sync with what I'm doing!
@gym1champ
2 жыл бұрын
YES
@delfish41
2 жыл бұрын
I was just googling about hosting a node js project and here comes fireship :)
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!
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!
Me being an actual CTO at a Company and watching this*
@cja1218
2 жыл бұрын
Same and one using cloud run I can confirm this video checks out.
@saurabhmehta7681
2 жыл бұрын
Hire me, I'm something of a developer myself
@user-cv6kf4bk1q
2 жыл бұрын
@@saurabhmehta7681 what did you make
@HandledToaster2
2 жыл бұрын
Good for you.
This was just what I needed! You’re a genius to predict what devs need :P
The perfect video that I was looking for! Thank you man
i have learned so much from this channel and the content just keeps coming
This was a very well explained video, thank you for this, it helped a lot!
Another great video! thanks you very much for sharing valuable and concise info
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
Жыл бұрын
graphql is not a db
@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
11 ай бұрын
@@AbhishekKumar-lp5rc he doesn't say that he is not doing though?
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
2 жыл бұрын
Good Luck!
@gokuldinesh8851
2 жыл бұрын
Thankyou ❤️
@JOHNSMITH-ve3rq
2 жыл бұрын
Is this for real?
@ryank.6033
2 жыл бұрын
How has it been?
@kerubi5s
2 жыл бұрын
What's a good environment for deploying a startup website?
Thanks, really cool and useful
This was very comprehensive, thanks!
Excellent video as always
You are a life saver man!
exactly what i was looking for, thanks
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!
Thanks, this is exactly what I was looking for
Nice summary. Thanks.
I love the node content you create man 🔥
Very informative, Coach
@Fireship
2 жыл бұрын
Silver 🥈
What a great video!! thx!!
Great video!!
You're awesome man!
Thank you for the pointer about updating Node.js - I was 4 versions out dated.
sick video bro !
I have been wanting to try app engine flexible, sounds like the thing I needed for now
This is fire!
Thanks for this video.
THE LEGEND RETURNS
Great video 👍
I love this channel
Well explained 👌👌
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
2 жыл бұрын
Would love to hear more stories!!!
@arbazkdr136
11 ай бұрын
Your comment help me more than this whole 😂video thanks
My absolute legend!!! 🙏🌹🚀
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
2 жыл бұрын
@@pepetheweedsmokingfrog4916 Yeah but they don't support free TLD like .tk, .ga, .ml
@abdullahahmed7781
2 жыл бұрын
@@FaisalAfroz use a CNAME record in your dns config to point to the dynamic address ....
@miguelklappes8525
2 жыл бұрын
@@FaisalAfroz Buy a domain at $1 for the first year
@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
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
Bro, I loved your content. Greetings from Colombia
Solid video
So helpful to those of us who are self taught!
"Server in your garage" is way too accurate
very nice thanks
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 :)
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
Жыл бұрын
it's good for hobby
What a timing my man. :-) just when I was searching of node stuff
Your channel is so useful. Ordered a premium membership on your site for a month to say thanks
as a (startup) CTO, the last part is what i do. And it is pretty much thanks for this channel why.
What a video!!!
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?
ty man
The thumbs-up seems too little for this video. thank you for such a great short explanation.
Giving like for an awesome video but that thumbnail meme is golden, awesome job!
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 🤣
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.
From all the options explained in this video, App Engine seems most convincing to go for.
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 😂
I love Node JS
Can you do a video on server-side caching services like Redis and also some useful caching use cases?
Thank you brojan
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
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.
brilliant
Could you make a full Kubernetes video? I somehow hoped you will address it (in a limited form) in this video?
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.
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
Jeff, thanks a 100000000000000 times, was just looking for something like this. None of them match your vibe. 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
Very useful, Please make same for react too.
Hey Jeff, is there going to be a NestJS full tutorial in the future? kinda like Next.js 10 min video
@-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
2 жыл бұрын
@@-parrrate you made my day
@soulninjadev
2 жыл бұрын
what is nest js ;- do u mean next or nuxt
@soulninjadev
2 жыл бұрын
@@-parrrate 😂😂😂
@xenon4602
2 жыл бұрын
@@soulninjadev NestJS is backend Javascript framework. I didnt misspelled it smh
Nice
☁️🏃♀️ FTW!! 🔥
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.
why standard gcp app engine has high latency than heroku free dyno or GCP colud run. do anyone know answer to this.
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?
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.
What are the AWS equivalents of the GCP technologies mentioned?
Where is the astrojs portafolio video you we’re going to makeee? I’m really looking forward for that video
This channel is a real painkiller! All the stuff you need to know without the useless stories~
I love this guy background music supper genius
i just did thid for my exam. then this video,, nice !!!
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.
I need this VScode theme!
Thanks
@Fireship
2 жыл бұрын
Gold 🥇
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?
I've never seen a CTO do a deploy in any language or platform.
I like the template by the way
I love deploying machine learning apps using Cloud Run
I heard somebody say, "WHAT A GREAT F*N VIDEO"
For me having VM on cloud just does the trick.
Amazing…
I need to know what do use to create these amazing videos 🥺🙏🏼 I can't find a good video editors.
Wow, I was looking for this 1h ago...
If you are gonna go for serverless, I like Vercel because it's simpler to use than Google Cloud
@codeaperture
2 жыл бұрын
What of firebase functions? Netlify functions?
@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
2 жыл бұрын
AWS Amplify is a good option as well
@miguelklappes8525
2 жыл бұрын
@@canvaapplessons1224 Go for Cloudflare Functions, no cold start
which icon pack do you use in vs code?
could someone tell(or suggest any video) how to deploy and react app along with node js on our own server.
Cloud run rocks
Wow cool
Pretty sure websocket are not supported in GAE standard environment, it's only supported in flexible environment
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?