Linux Server Setup & MERN Deployment

  Рет қаралды 61,768

Traversy Media

Traversy Media

Күн бұрын

In this video, we will set up a Linux Ubuntu server, set up SSH keys, and deploy a MERN app by setting up PM2 and an Nginx reverse proxy.
⭐ $100 Credit With Linode!
linode.com/traversy
💻 Gist With Commands:
gist.github.com/bradtraversy/...
💻 Goalsetter Project We Will Deploy:
github.com/bradtraversy/mern-...
💻 All Courses
traversymedia.com
💖 Show Support
Patreon: / traversymedia
PayPal: paypal.me/traversymedia
👇 Follow Me On Social Media:
Twitter: / traversymedia
Instagram: / traversymedia
Linkedin: / bradtraversy
Timestamps:
0:00 - Intro & Slides
4:10 - Creating a Server
5:30 - Generating SSH keys
9:16 - Connecting to the server
10:18 - Upgrade packages
11:21 - Create a new user
12:32 - Add public key for new user
14:42 - Disable password login
15:49 - Auth with new user SSH key
17:37 - Install Node.js on the server
19:47 - Clone app on to the server
21:04 - MongoDB setup
24:51 - .env setup
26:13 - Install dependencies
29:20 - PM2 process manager
30:30 - Firewall setup
31:46 - Nginx install & configure
35:36 - Domain Name & SSL

Пікірлер: 119
@shauntonesify
@shauntonesify Жыл бұрын
This is EXACTLY the type of information I think new developers would love to learn. Thanks Again Brad!
@bulldog2024
@bulldog2024 Жыл бұрын
I totally agree.
@filix6360
@filix6360 21 күн бұрын
The only concise tutorial in youtube about deployment is this one...keep up the good work.
@universecode1101
@universecode1101 Жыл бұрын
MERN as Js -React developer is one of my favorite topics. Your channel is an incredible resource for me, and this is one of the few topics that were missing, it seems to me. Thanks Brad
@philippec4448
@philippec4448 Жыл бұрын
Just the video from you I've always hoped for ! I have been longing for a complete video about MERN deployment stuff but with your teaching style ! Today is a big day. And again, as always, a big thank you to you for your awesome tutorials ! You really are the best !
@luisf7105
@luisf7105 Жыл бұрын
Brad, what you do for us who are just starting to learn this stuff is truly GREAT!!
@raymondmichael4987
@raymondmichael4987 Жыл бұрын
A more complete MERN playlist ever. Thanks buddy
@andrewingombe4235
@andrewingombe4235 Жыл бұрын
Awesome, I have been waiting for this... great content Brad, please keep up the great work.. 👍
@Geomaverick124
@Geomaverick124 Жыл бұрын
Would love to see more of these types of vids with deployment to other types of clouds too like AWS, GCP, Azure, and even Oracle and Digital Ocean. Keep up the good work
@TheProkiborg
@TheProkiborg Жыл бұрын
Love your videos, easy to watch and you learn so much from them! I would love to see “part two” of this video about Kubernetes, Docker and scaling web apps.
@kman41000
@kman41000 10 ай бұрын
The best video I've watched uploading a site to a Linux server, thank you!
@usmanqasim7948
@usmanqasim7948 Жыл бұрын
This is the big picture which every developer should understand and learn. This big picture was not clear to me almost 2 years. Now it's pretty much clear and i am able to deploy Specific MERN application at least for now. Thanks Brad
@mcgruff0972
@mcgruff0972 Жыл бұрын
Thank you so much for this. I’ve been looking for something like this everywhere. But this is perfect.
@nachum800
@nachum800 Жыл бұрын
Perfect timing!!! Great video as always!
@pratikwadekar4981
@pratikwadekar4981 Жыл бұрын
This video was so bingeworthy. I had experience deploying apps to DigitalOcean. But this video was so much fun and interesting to watch. Also covering all the essentials relating to Linux commands.
@abenjamin13
@abenjamin13 Жыл бұрын
OMG 😳 fantastic Brad thank you 🙏. I needed this for a side project. 👍
@satyasridevi851
@satyasridevi851 Жыл бұрын
Just finished the tutorial. Thank you so much brad
@ernestofavio6735
@ernestofavio6735 Жыл бұрын
Thanks bro, I needed to learn about this kind of app deployments. Please do this topics more often.
@hustleeveryday9132
@hustleeveryday9132 Жыл бұрын
This man has helped me years ago build an angular app for my university project and here he is years later helping me do what my current job needs me to do. He's my secret help that I recommend everyone to start learning to program with. Honestly thank you Brad. I hope you and your family are doing well.
@user-vj3cu3wv9l
@user-vj3cu3wv9l Жыл бұрын
today i did my first work for money
@kleczekr
@kleczekr Жыл бұрын
Maaan, I needed this video sooo bad three weeks ago 😂 Good stuff, definitely clarified things, bookmarking it for the future!
@streety765
@streety765 Жыл бұрын
As always great tutorial! Thanks Brad!
@aymenzitouni1246
@aymenzitouni1246 Жыл бұрын
Thanks brad , that's what exactly i was looking for those days
@janeimpossible4625
@janeimpossible4625 Жыл бұрын
I'm in love with your teaching way:) I was freezing for some month and have no progress!
@deejaydev
@deejaydev Жыл бұрын
Not sure I will every be using this but thank for the time you dedicated to giving us these content Brad
@robcz3926
@robcz3926 Жыл бұрын
JIT. literally just finished an online bootcamp for Linux administration and while it covered most of these topics it's awesome to have a video like this as a step by step guide. cheerios
@nudecode
@nudecode Жыл бұрын
Absolutely love your content. Informative and beyond the basic get your server running in 2mins.
@markfeltonproductions6814
@markfeltonproductions6814 Жыл бұрын
This is a Certified KZbin comments
@rameshyuvaraj8624
@rameshyuvaraj8624 Жыл бұрын
wow I just recollected my entire project setup with this video
@nnamdiorie5830
@nnamdiorie5830 Жыл бұрын
Thanks a lot Brad.. This information came in time and really useful for a MERN project i've been working on ,thinking about how to deploy in a linux environment because I love how that PM2 allows you monitor logs at realtime.. I look forward to when you would do this with Azure... Thanks a lot.. I appreciate.
@user-vj3cu3wv9l
@user-vj3cu3wv9l Жыл бұрын
hello Brad, today İ did my first html css work for money, and all because of you, just want to say thank you for all your projects and your heartwarming voice, motivational video about your difficult past and prison stuff, you're like a father to me
@chill-_-839
@chill-_-839 Жыл бұрын
that's great dude. keep at it 👍
@user-vj3cu3wv9l
@user-vj3cu3wv9l Жыл бұрын
@@chill-_-839 tbh i didn't earn anything since then, but I am trying to become frontend developer, JS is much harder than HTML&CSS, that's the other side of the coin
@hammedmujeeb5145
@hammedmujeeb5145 2 ай бұрын
You just gained a new subscriber. Thanks @Traversy😊
@kim92se64
@kim92se64 Жыл бұрын
Awesome work as always
@izzie.12
@izzie.12 Жыл бұрын
I think Brad is reading my mind when he makes such videos. I needed this information so bad.
@alir8zana635
@alir8zana635 Жыл бұрын
Exactly like me
@jasonpraful
@jasonpraful Жыл бұрын
Loved the video. Looking at it from a user perspective I would love a follow up where you use GitHub actions to automate code deployment.
@novailoveyou
@novailoveyou Жыл бұрын
Thank you Brad! You're the best!
@ianfarai4982
@ianfarai4982 Жыл бұрын
Thanks brad for this tutorial really appreciate it
@janulik9535
@janulik9535 Жыл бұрын
great, I am just learning and after recently I started with node.js I somhove unintentionaly dive into linux. Now I was wondering what am I doing, so I googled mern on linux. I clicked first video and when I heart your introsounds... I feel happy :), thx
@eddiebello9547
@eddiebello9547 Жыл бұрын
Very helpful video, thank you for doing this.
@DanielK48
@DanielK48 Жыл бұрын
Awesome video, Brad! Thank you!
@arjunshinde7
@arjunshinde7 Жыл бұрын
Thank you Guru for making this wonderful video.
@Techchunk336
@Techchunk336 5 ай бұрын
Great tutorial & a great teacher
@eduardom800
@eduardom800 Жыл бұрын
Nice!!! I was just learning this stuff.
@aleksandrmisnov
@aleksandrmisnov Жыл бұрын
Great video Brad! I really liked the proxy setup via nginx to get rid of port. Other solution is to use docker, but it’s much more confusing in my opinion.
@cn.mbhalati
@cn.mbhalati Жыл бұрын
Needed this!
@80Vikram
@80Vikram Жыл бұрын
Awesome, it's always good to know how server actually works and what voodoo goes in there. Thanks a ton for sharing this knowledge, god bless you
@nro337
@nro337 Жыл бұрын
Fantastic as ever. Thanks!!
@stuffedstuff7086
@stuffedstuff7086 Жыл бұрын
Aah the GOAT of crash courses came with another great video, thanks brad. 🔥🚀
@mochamadrasyad338
@mochamadrasyad338 Жыл бұрын
Awesome video 🔥 Thankyou
@intensedev
@intensedev Жыл бұрын
I love the MERN stack😘
@imrank1971
@imrank1971 Жыл бұрын
Thanks a lot. This video is very Informative. ❤️❤️
@medAmineRg
@medAmineRg Жыл бұрын
thank you so much brad
@gdsimpson3
@gdsimpson3 Жыл бұрын
Thanks a lot, this is exactly what I want
@sunmonu-adedejiolawale4959
@sunmonu-adedejiolawale4959 Жыл бұрын
Thank you Brad.
@arielspalter7425
@arielspalter7425 Жыл бұрын
Extremely useful!
@ezrakeeps
@ezrakeeps Жыл бұрын
You deserve an Oscar's award or something
@nero-je9ni
@nero-je9ni 8 ай бұрын
thanks!
@webandmobiledev
@webandmobiledev Жыл бұрын
Right on time
@judoScott
@judoScott Жыл бұрын
That was fantastic as are all of your videos. Thank you so much. I am about to start a freelance project and this is exactly what I need. My only questions are, a. if I publish the site then make any updates would I need to stop the server, go a git pull then npm run build then restart the server? and b. can I host multipe sites on one linode so I can have a production server and a test server? Thank you again!
@fuseteam
@fuseteam Жыл бұрын
cool, nice and easy to digest~
@amarmohammed5644
@amarmohammed5644 Жыл бұрын
Lol how interesting I was doing this today at work!
@sviollat
@sviollat Жыл бұрын
Hey Brad, thanks for this awesome tutorial ! I guess we could easily use Caddie2 server instead of nginx to access the app. Btw, any chance to get a video on Caddie ? Thank you sir !
@damisaalex4137
@damisaalex4137 10 ай бұрын
You are the best ❤❤
@mehboobahmed892
@mehboobahmed892 Жыл бұрын
Thanks brad
@shmueltufahi5714
@shmueltufahi5714 8 ай бұрын
Thanks!!!! very usefull
@musshare
@musshare Жыл бұрын
You have saved me 😎🙌
@sebastianc4557
@sebastianc4557 Жыл бұрын
More videos like this!
@ogundekoadegbenga3766
@ogundekoadegbenga3766 Жыл бұрын
Brad been serving us hot hot since 17th century. I have never looked back. Thanks Brad...this video explains a ton for me
@dev_jeongdaeri
@dev_jeongdaeri Жыл бұрын
super cool!!
@kaabemedia
@kaabemedia Жыл бұрын
Thanks Brad I would ❤ to see a video about django, postgreSQL, linode
@alexpiano
@alexpiano Жыл бұрын
That was a fun one, could you do another one related to linux server setup? cheers
@kurshadqaya1684
@kurshadqaya1684 Жыл бұрын
Super!
@metatronicx
@metatronicx Жыл бұрын
How comes....? Is this Google tracking me or Brad reading the minds of his subs ? I need exactly this for a nestjs deployment. Just incredible. Thank you Brad. You're a gift from God
@cubedev4838
@cubedev4838 7 ай бұрын
Please teach how to setup email configuration in linode
@2347matte
@2347matte Жыл бұрын
Freakin amazing
@SALCSETanujJoshi
@SALCSETanujJoshi 11 күн бұрын
Hello there. Thanks for this tutorial. I have a question, if I stop my instance and start it again next day, where to update new IP address of instance?
@saadowain3511
@saadowain3511 Жыл бұрын
Amazing
@jdogstersc
@jdogstersc Жыл бұрын
Man, I just finished figuring out how to do all this like 3 days ago lmao
@GGdevelopment
@GGdevelopment Жыл бұрын
kind of bummed that you and Dev Ed have such awesome content for react but not Vue 😢 regardless, great work 😊
@md.imriazuddin139
@md.imriazuddin139 8 ай бұрын
Thank you. Could you please tell me the way of run 2 app (frontend & back end) in a single npm start command in root folder?
@tungleanh3070
@tungleanh3070 Жыл бұрын
Thanks for your video. I'm running server and serve react typescript client. Do you know why server return 200 but it does not run js file?
@vivienhounsounou1867
@vivienhounsounou1867 Жыл бұрын
instead of downloading the project files, is there not a way to connect github to linode and take advantage of ci/cd as we do on heroku?
@Arabian_Epileptic
@Arabian_Epileptic Жыл бұрын
Mern is my fav
@punit5601
@punit5601 Жыл бұрын
Can you make was deployment video as well? A normal one and one with docker deployment
@achebepeter2620
@achebepeter2620 Жыл бұрын
Hy brad, I followed what you did with my remote ubuntu server, everything worked till after using Nginx to deploy. immediately after signup, and logging in the app starts flickering and you won't able to add any goal any advice on how to go about it and how can I see the user info from the database. Looking forward to your answer.
@okeyshourovroy2769
@okeyshourovroy2769 Жыл бұрын
Can you please make a video on apollo-express-server refresh-token implementation in reactjs and flutter?
@amaanhere
@amaanhere 5 ай бұрын
Failed to load resource: net::ERR_CONNECTION_REFUSED this error i am getting in the console of browser and ui is working fine but i am not able to make request to the monogdb and in the pm2 logs i can see the message of monogo db connected successfully i think this is issue with mongo please help me!
@markshmellomd1370
@markshmellomd1370 Жыл бұрын
how does this encrypt ur back-end? u only encrypt the front-end in the video
@kimayapanash8998
@kimayapanash8998 Жыл бұрын
Can i learn full mern stack from your mern series?
@zacharrygeorges2181
@zacharrygeorges2181 Жыл бұрын
How would set it up to go /app as the route
@virajnirbhavane
@virajnirbhavane Жыл бұрын
My api calls aren't working after build and opening with ip:5000, Any idea whats happening?
@dilawar_uchiha
@dilawar_uchiha Жыл бұрын
This should potentially work 1:1 for debian servers
@ztcanada_1
@ztcanada_1 Жыл бұрын
Helpline 📲📩 QUESTIONS CAN COME IN☝️⬆️ ⬆️....
@mohamedyoussef8835
@mohamedyoussef8835 Жыл бұрын
Awesome video +++++++++++++++++++++ 🙂
@nelsonparreira6250
@nelsonparreira6250 Жыл бұрын
And for an LAMP sever is the same?
@ABsazerNer
@ABsazerNer Жыл бұрын
I hope you do this in local Linux server
@alexpiano
@alexpiano Жыл бұрын
Hello, I learnt many stuff throughout this video, thank you Brad :) I just got this message after restarting nginx, saying "Welcome to nginx! If you see this page, the nginx web server is successfully installed and working. Further configuration is required." The web is not showing up. Do you know what to do? Thanks!
@alexpiano
@alexpiano Жыл бұрын
ok found it I think, I modified the conf file at the wrong place. When opening sudo nano /etc/nginx/sites-available/default Don't go to the end of the doc, the part to modify is closer to the begining.
@davidardo4466
@davidardo4466 Жыл бұрын
hello teacher, i have two question? math is important to software engineer? Second question? can i do better math? third/Sir, I'd like to work with Google in the future. Can I?
@Geomaverick124
@Geomaverick124 Жыл бұрын
this should be cool. :)
@skyhappy
@skyhappy Жыл бұрын
Shut up
@132_priyankrai5
@132_priyankrai5 Жыл бұрын
Want more videos on deployment
@Getsitement
@Getsitement Жыл бұрын
You are doing good. I am also creating programming course on my channel.
@varunnarayanan6301
@varunnarayanan6301 Жыл бұрын
33:16 can i give any server name of my choice ?
@avigii_
@avigii_ Жыл бұрын
Oh, there's already those "I was looking for XXX, and you posted it" comments?
@khantsithuphyo5484
@khantsithuphyo5484 Жыл бұрын
Why not Apache mysql
The NGINX Crash Course
50:53
Laith Academy
Рет қаралды 464 М.
Ubuntu Server: Getting started with a Linux Server
1:09:33
Byte My Pi
Рет қаралды 488 М.
Паводки в Казахстане. Спецвыпуск
2:49:27
ОБОЖАЮ
Рет қаралды 1,5 МЛН
КАРМАНЧИК |2 СЕЗОН 2 СЕРИЯ
25:40
Inter Production
Рет қаралды 740 М.
PILIHLAH PASANGAN KAUS KAKI 🧦 MEMBERSIHKAN KAKI
00:17
One More Indonesia
Рет қаралды 67 МЛН
Genius Parenting Food Hacks & Gadgets
00:42
GiGaZoom
Рет қаралды 33 МЛН
Stop Worrying About AI!
6:40
Traversy Media
Рет қаралды 45 М.
Build & Deploy MERN stack application with Ubuntu, Nginx, PM2, SSL certification (Arabic)
35:02
How to use Docker and migrate your existing Apps to your Linux Server?
19:12
How to Deploy and Secure Your MERN App on Linode (NGINX, PM2)
57:32
Akamai Developer
Рет қаралды 7 М.
The story of the grand conspiracy. Who and how seized control of Russia
1:07:32
Алексей Навальный
Рет қаралды 2,9 МЛН
Green Color Best Mobile Spark 2024
0:45
SDC Editing Zone 9K
Рет қаралды 288 М.
iPhone 15 в реальной жизни
20:03
HUDAKOV
Рет қаралды 591 М.
Iphone yoki samsung
0:13
rishtan_vines
Рет қаралды 6 МЛН
😮Бутер по цене Айфона😱
0:34
Demin's Lounge
Рет қаралды 418 М.
Раздолбил телефон в хлам 😱📱
0:33
~Edita Neverlon~
Рет қаралды 20 М.