How to deploy a server - Node.js + MongoDB + NGiNX Tutorial

  Рет қаралды 29,699

Mehul - Codedamn

Mehul - Codedamn

Күн бұрын

Sign up for Linode using this link and receive FREE $100 credits: linode.com/codedamn
MongoDB Crash Course: codedamn.com/learn/node-mongo...
00:00 Introduction
01:14 Linode Overview
02:00 Creating Linode Instance
06:10 SSHing into Linode
08:00 Installing NGiNX
09:40 Installing MongoDB
11:10 Installing Node
12:46 Getting project on Linode
14:00 Testing local server
14:48 Switching to NGiNX
18:08 Installing PM2
19:28 Map NGiNX to Node server
22:00 Testing production server
Don't forget to subscribe and like the video if you enjoyed :)
Want to become a programmer? Learn and solve challenges on codedamn: codedamn.com
My Instagram: / mehulmpt
My Twitter: / mehulmpt
My LinkedIn: / mehulmpt

Пікірлер: 53
@codedamn
@codedamn 3 жыл бұрын
Thank you everyone for the support, and thank you to Linode for sponsoring a part of the video. You can get FREE $100 credits on Linode and support the channel by signing up using this link: linode.com/codedamn ❤️
@batu4605
@batu4605 Жыл бұрын
Sir can you share your vs code theme with me it's looks very nice 🤩 and if possible you can make a vs code settings and extensions video. Thanks for your supports 🙏
@adamkois3252
@adamkois3252 3 жыл бұрын
Hey man, this video is awesome, but could you make node js + mongo db + nginx + docker and with all security things that are required so the website would be safe?
@FaizanIzen
@FaizanIzen 2 жыл бұрын
Amazing tutorial, Loved it.
@kaypakaipa8559
@kaypakaipa8559 2 жыл бұрын
Hey man thanks alot. Exactly what i was looking for.
@yeisane
@yeisane 3 жыл бұрын
A very well done video. Thanks man
@barney8545
@barney8545 2 жыл бұрын
Super helpful and concise!
@dhananjayaggarwal
@dhananjayaggarwal 3 жыл бұрын
this is the best tutorial I saw in a very long time ❤
@codedamn
@codedamn 3 жыл бұрын
Thanks Dhananjay!
@sourishdutta9600
@sourishdutta9600 3 жыл бұрын
Hey, thanks for everything :) Waiting for Webpack 5 tutorial, And also Micro front end architecture with a demo app running on both Angular and React Module wise.
@mishenthakshana3407
@mishenthakshana3407 Жыл бұрын
I don't know how much I should thankyou. Thankyou so so much for this tutorial
@onyeanunaprince9081
@onyeanunaprince9081 Жыл бұрын
Thank You!!!!!!!!!! Years later and your solution is going to help me get a diploma. I'm grateful
@ashwinrawat9622
@ashwinrawat9622 3 жыл бұрын
You can use ssh in powershell too, without installing anything
@subhamray1203
@subhamray1203 3 жыл бұрын
U have so much knowledge.. Wish I could be someday as good as you. I am working towards it day by day..
@subhamray1203
@subhamray1203 3 жыл бұрын
I am very familiar with linux, as I use a ubuntu based distro🔥
@zaynsheikh9907
@zaynsheikh9907 Жыл бұрын
You'r life saver bro
@andreyzhukov2821
@andreyzhukov2821 3 жыл бұрын
Hello! Thank you! You helped me!
@bacon37460
@bacon37460 3 жыл бұрын
Very helpful video. Thanks man for sharing with us.
@codedamn
@codedamn 3 жыл бұрын
Glad it was helpful!
@kumarandtechie9558
@kumarandtechie9558 Жыл бұрын
Thank you.
@free_audiobooks
@free_audiobooks Жыл бұрын
I would like to comment this is what I wanted from long time , You are catching nerve of root developers , keep it up.
@YOUdudex
@YOUdudex 3 жыл бұрын
Amazing 👌
@dashiellbark-huss6806
@dashiellbark-huss6806 3 жыл бұрын
Did you make a video on SSH keys?
@Moreynium
@Moreynium 2 жыл бұрын
in which nginx file we have to edit 'server_name' in order to get our domain name link?
@ashishpaul3819
@ashishpaul3819 3 жыл бұрын
which font do you use in your code editor??
@Viveksharma0157
@Viveksharma0157 3 жыл бұрын
Lovely ❤️
@piyushmahapatra6405
@piyushmahapatra6405 3 жыл бұрын
Mehul Bhai, ek Tutorial SSH ke liye bhi please 🙏 Thanks for this ❤️
@QuocPham9527
@QuocPham9527 2 жыл бұрын
I understand your problem, is username and password. Please use the password token version to get through the git clone. And also don't forget to create an SSH key even though it's not necessary for the above tutorial docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token SSH kzbin.info/www/bejne/pX7UZGqbp9J7gMk
@harshilparmar9076
@harshilparmar9076 3 жыл бұрын
Wooh 🔥
@AhsanAli-we8ph
@AhsanAli-we8ph 3 жыл бұрын
in my node project, my routes doesn't start with api or any other prefix, and I just added the / location block, but it only works for my app.get('/') method, how can I access my other nodejs routes
@NikhilPatil4u
@NikhilPatil4u Жыл бұрын
Can anyone tell me the VS theme name ?
@rishabhsoni575
@rishabhsoni575 3 жыл бұрын
Hey mehul Please create video on how to deploy docker image to linode, digitalocean ?
@codedamn
@codedamn 3 жыл бұрын
Sure! Adding it to the list
@Rahulsapkota
@Rahulsapkota Жыл бұрын
how to deploy nodejs and reactjs on same server with same nginx server , can you please create a short video on that.
@kishorrathva4097
@kishorrathva4097 2 жыл бұрын
why using express to serve static file is not the best way?
@RIAN8835
@RIAN8835 2 жыл бұрын
How to host multiple asset or frontend with nginx
@stroverbg
@stroverbg 2 жыл бұрын
Can't reach my website with vps on port :8080. Node is saying server running at port: 8080, but can't reach the website and on ip address with port 80 is running. Please help!
@tekipeps
@tekipeps Жыл бұрын
How about ci/cd?
@mohamedyoussef8835
@mohamedyoussef8835 Жыл бұрын
Awesome video ++++++++++++ 🙂
@dinesh0743
@dinesh0743 3 жыл бұрын
Bro., which icon pack are you using in VScode..?
@codedamn
@codedamn 3 жыл бұрын
Material Icons
@Ralphflowers
@Ralphflowers 2 жыл бұрын
I'm getting an Error 403, instead of static .html files I have .ejs files.... what could be the problem here?
@Moreynium
@Moreynium 2 жыл бұрын
did you found any solution?
@Ralphflowers
@Ralphflowers 2 жыл бұрын
@@Moreynium yea I can't really remember what I did but u removed some lines
@Ralphflowers
@Ralphflowers 2 жыл бұрын
@@Moreynium if you are stuck we can go through it together. I'm actually launching another website soon so I will obviously check what I did to make the other work.
@jondavies2843
@jondavies2843 2 жыл бұрын
Fantastic video, learned a lot :)- I have read that we should not use root account and should be disabled - I'm a beginner and think docker might be too advanced, however is it possible to create a new non-root account deploy apps and run apps under a less privileged account - any tutorials on this?
@manan5
@manan5 3 жыл бұрын
What is the advantage of using nginx over express
@codedamn
@codedamn 3 жыл бұрын
nginx is much more optimized to deliver static assets and handling TLS connections than node. It's written in C, has a very low memory footprint, is super stable (used in production by almost all major companies), and is very fast.
@manan5
@manan5 3 жыл бұрын
@@codedamn oh I get it thanks ❤
@suatbayrak2703
@suatbayrak2703 3 жыл бұрын
what if i have mongodb as mongodb atlas ? how should I manage mongodb atlas's secret URI without deploying to github
@codedamn
@codedamn 3 жыл бұрын
You can put that in an environment variable on production server. You should manage secrets using local environment variables only.
@ratul1125
@ratul1125 2 жыл бұрын
apt install mongodb > not working :(
@JasonLee-fc2ot
@JasonLee-fc2ot Жыл бұрын
I don't approve of using root as nginx user. Dont be lazy, that's how you open up vulnerabilities. Just change the permissions, thats what you should have done.
Deploy a Node.js app to Ubuntu Server
17:04
Robotic Nation
Рет қаралды 10 М.
What is NGINX and how reverse proxies work?
10:16
Mehul - Codedamn
Рет қаралды 66 М.
顔面水槽がブサイク過ぎるwwwww
00:58
はじめしゃちょー(hajime)
Рет қаралды 103 МЛН
Kitten has a slime in her diaper?! 🙀 #cat #kitten #cute
00:28
Зу-зу Күлпәш. Агроном. (5-бөлім)
55:20
ASTANATV Movie
Рет қаралды 615 М.
MongoDB + Mongoose + Node.js Crash Course | CRUD and fundamentals of MongoDB
1:09:21
Deploy Your Containerized App With Docker Swarm | Scalable App Deployment
32:14
How node JS works | Engineering side
29:15
Hitesh Choudhary
Рет қаралды 57 М.
Realtime Chat With Users & Rooms - Socket.io, Node & Express
58:45
Traversy Media
Рет қаралды 860 М.
Deploy NodeJS Application on AWS - Amazon Web Services | NodeJS
19:51
Full Stack AI Web Development Guide For 2024 (30 Minutes)
29:34
Mehul - Codedamn
Рет қаралды 48 М.
Docker Compose Tutorial
33:02
Programming with Mosh
Рет қаралды 419 М.
Learn HTML5 and CSS3 For Beginners - Crash Course
3:54:03
developedbyed
Рет қаралды 2,9 МЛН
顔面水槽がブサイク過ぎるwwwww
00:58
はじめしゃちょー(hajime)
Рет қаралды 103 МЛН