Deploy and Host a Fullstack MERN Application Tutorial In Heroku and Netlify

  Рет қаралды 84,659

PedroTech

PedroTech

Күн бұрын

Пікірлер: 265
@vijayjoshi4071
@vijayjoshi4071 3 жыл бұрын
Thanks man for this amazing tutorial.....I was recently working on a MERN Stack application and while the entire development process I was just worried about one thing which was deployment....Your tutorial helped me a lot and made the deployment process pretty simple which I used to earlier consider as a nightmare due to a lot of steps involved in it. You really deserve a lot of appreciation 👍👍👍
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Great to hear! I am glad you liked the video!
@adabus8779
@adabus8779 3 жыл бұрын
Hey bro! I don't usually leave comments on videos much. However for this one I have to. I have been facing issues with understanding and deploying (I would say especially deploying) mern apps . And this series you posted was super helpful. You kept it crisp and to the point. Not much beating around the bush or over explaining things. Thanks for uploading such good content. Keep up the good work bro!
@mounish3
@mounish3 2 жыл бұрын
Thank you so much! I've been lookin' for this tutorial everywhere but you are the one who explained it completely :)
@lle5159
@lle5159 3 жыл бұрын
Not all heroes wear cap, you are the one man! Keep doing the great work! Thank you very much for making these helpful tutorials!!!
@CAPS_AMERICA
@CAPS_AMERICA 3 жыл бұрын
It's not boring, so much stuff to learn from this series, simplicity is key!
@stanislaustankevich5445
@stanislaustankevich5445 3 жыл бұрын
Thank you again! I finally did what i wanted to, your tutorial is great in explaining things to beginners, in comparison to others tutorials where people just say do this and then do that, not explaining why
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Great to hear!
@jamjam3448
@jamjam3448 3 жыл бұрын
Thanks sooo much. It took me more than a week to deploy my MERN stack app. Thanks a million.
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Glad I was able to help!
@ronananderson
@ronananderson Жыл бұрын
Thanks Pedro. I always come back to your tutorials for clarity. Oh and the music!
@silentxcure
@silentxcure 3 жыл бұрын
my new favorite youtuber, you literally saved me on many occasions. thank you so much.
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Hahaha thank you! Really appreciate it!
@sortof.damocles
@sortof.damocles 2 жыл бұрын
Deployed my first MERN project! Thanks Pedro!
@pranitabhagat5496
@pranitabhagat5496 3 жыл бұрын
After searching for lots of video finally found video which is actually helpful. Thanks for video.
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Glad it was helpful!
@roynicksonjacques8700
@roynicksonjacques8700 3 жыл бұрын
Thank you man, finally got this thing to work, this my first site ever deployed
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Awesome! Glad you were able to get it to work!
@evanoshea9506
@evanoshea9506 2 жыл бұрын
this is so good, thank you Pedro!
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Glad you like it!
@dr.kenedy-oltitia
@dr.kenedy-oltitia 2 жыл бұрын
Love it man, worked perfectly, I had taken the whole day troubleshooting, looking for different tutorials without success but yours made the difference 😂
@madeyeatreides4055
@madeyeatreides4055 4 жыл бұрын
Thank you so much I didn't understand before and I was so frustrated 😭
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
I get the frustration, I am happy I was able to help! Thank you!
@MehediHassan-pn5uc
@MehediHassan-pn5uc 2 жыл бұрын
Thank you soo much pedro! Your videos always fixes the problem also you does the things that no other youtuber does that is tech like beginnner! I always recomend your channel to all my friends! always be like that brother
@yogeshwaran9781
@yogeshwaran9781 2 жыл бұрын
Thank you so much brother. You explained very well. The best part is you showing the errors that occoured.
@ParthDhamija
@ParthDhamija Жыл бұрын
This is great dude especially how to deal with errors!
@dhananjaikumar8304
@dhananjaikumar8304 3 жыл бұрын
Bro u r lifesaver ,all other videos showed use of MLabs which was discontinued,but thanks to u I connected my mongodb to heroku
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Glad I could help! I went through the same thing a year ago hahaha I know the struggle!
@noelcovarrubias7490
@noelcovarrubias7490 3 жыл бұрын
Dude. for the longest time I thought you had to deploy the server and client together. I've mostly focused on front end stuff and I use Vercel which I love. Thanks for this, I will continue using Vercel but now I know how to use Heroku for my servers :D
@KCODivyanshuKatyan
@KCODivyanshuKatyan 2 жыл бұрын
This is the best tutorial on yt for hosting
@arpitj07_
@arpitj07_ 2 жыл бұрын
Thanks.. I was facing the H10 error and searched different resources on internet but only this video helped me to get my app deployed.😃
@isacvarghesek7010
@isacvarghesek7010 3 жыл бұрын
Thank you so much man..... This was not at all boring.... You taught me a lot of things in just 30 min..
@PraSarYT
@PraSarYT 2 жыл бұрын
Bro, you are God! I tried deploying a simple app using only heroku and watched about 5 6 videos but none of them worked, until now. Thanks * 100000❤
@thriller718
@thriller718 3 жыл бұрын
By far the best tutorial on deployment. Thank you so much for this. Subscribed!
@Peter-cc7to
@Peter-cc7to Жыл бұрын
Thank you for also showing your Problems helped soo much
@SandunC320
@SandunC320 10 ай бұрын
You are fantastic pedro my boy.............................................
@casafurix
@casafurix 2 жыл бұрын
you freaking made my day man, eternally grateful
@rangabharath4253
@rangabharath4253 3 жыл бұрын
Awesome as always 👍😀
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thanks again!
@robbinluo2810
@robbinluo2810 2 жыл бұрын
Hi,mate. Can we talk about the error at 7:02 in more detail instead of I will come back when fixing this error? Many people get stuck by error H10 when trying to deploying their first app to heroku
@joekeesick2298
@joekeesick2298 Жыл бұрын
You the man Pedro, thank you
@sadanalasailendra
@sadanalasailendra 2 жыл бұрын
Hey Pedro , I want to deploy my MERN project but now the heroku was not free anymore ,and for frontend its easy to deploy on Netlify but what about backend can you give some suggestion.
@puneethj9920
@puneethj9920 3 жыл бұрын
U Rocked Man! Thank You
@rogin8265
@rogin8265 2 жыл бұрын
You are great man. Thanks a lot from the bottom of my heart
@gauravmavani1413
@gauravmavani1413 4 жыл бұрын
Ohhh yeahhhhh....i am very excited for this video
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
Lets gooo 🔥 Lmk if u have any questions!
@gauravmavani1413
@gauravmavani1413 4 жыл бұрын
@@PedroTechnologies Sure why not first let me try that socket chat app to deploy.....i told yoy in instagram that if i want to deploy that how can i do.... but here my problem will be solve let see what happen....
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
@@gauravmavani1413 Awesome! I followed this same path to deploy a separate socket app I made and it worked!
@LofiCoder
@LofiCoder 3 жыл бұрын
Very clear explanation. I'm looking forward for the next tutorial.
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you soon! More videos come every monday, wednesday, and friday!
@theanandppatel
@theanandppatel 2 жыл бұрын
Great Video for the deployment of full stack application. As well as well Explained Video
@pjguitar15
@pjguitar15 3 жыл бұрын
Hey Pedroo. You got everything I need 😁
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you!
@sundarsundar6721
@sundarsundar6721 3 жыл бұрын
Thank you so much for a great video tutorial. This deployment process was really irritating me as I kept getting errors and finally with this video, I was able to successfully deploy my MERN stack.
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Great to hear! Deploying is annoying!
@terrytech4725
@terrytech4725 3 жыл бұрын
Do you have a video building the project you are deploying? Thanks!
@muhibarshad009
@muhibarshad009 Жыл бұрын
Which theme of Vscode you are using?
@zoroXgamings
@zoroXgamings 3 жыл бұрын
Here both back and front are deployed in different domain , i also did that , but the problem is with authentication , how to set cookies in client-side and how to pass it to back end
@evamagdy627
@evamagdy627 3 жыл бұрын
you helped me a lot appreciate your effort
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Glad to hear that!
@newsdaily9825
@newsdaily9825 2 жыл бұрын
Amazing tutorial, thank you. If you're app crashes and you are using environment variables in the .env file, create them first in Heroku under your app settings in Config Vars. This can also be the reason why your app crashes during deployment.
@noobCoder26
@noobCoder26 2 жыл бұрын
Thank you So much man😀😀😀😀I was successfully able to deploy after reading ur comment . It was giving error in previously . Thanks .
@jayanthsaikiran6624
@jayanthsaikiran6624 3 жыл бұрын
Me searching for the right video for 2 days. (fails) KZbin: Ok, I'll do it my self. Thank you youtube. 😍
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Hahaha happy to see the youtube algorithm brought you to the video!
@kiranbenny1240
@kiranbenny1240 3 жыл бұрын
man that was an amazing tutorial .... u just nailed it , very helpful and to the point content .. thank you , thanks a lot, u just kept it simple and precise it was very easy to follow for a beginner to pro ,liked ur presentation style. subscription ++
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you! I am glad I could help! I have been through the same struggle so I am just trying to help those in the same situation I have been in!
@sirdragoon4625
@sirdragoon4625 2 жыл бұрын
What if my start command is nodemon index.js at 7:52?
@DmitryDaren
@DmitryDaren 2 жыл бұрын
Thank you. it works. Great video. You explain things. PS: Your Patreon seems to be off...
@fredianriko5648
@fredianriko5648 2 жыл бұрын
Hello pedro, thank you again for the tutorials, could you please cover more on the deployment + buying domain and add the custom domain to the app? like fully deliverable to the users
@FirstnameLastname-cl4op
@FirstnameLastname-cl4op 2 жыл бұрын
bro i really appreciate this video, it was clear and easy to understand. i want you to plz make a tutorial on how to deploy mern app on servers and how to configure whole server
@TheNamesJT
@TheNamesJT 3 жыл бұрын
Hey, can you make a video on how to host the front end and back end on heroku in the same app? can't find any current videos on this
@vladalexandrucristian3303
@vladalexandrucristian3303 3 жыл бұрын
Great Video!
@findritesh
@findritesh 2 жыл бұрын
Great video. I needed to run this after I switched from local mongo to online cluster: heroku restart
@astronautonmars
@astronautonmars 3 жыл бұрын
Thank you so much!. Great video indeed!
@srinivasasharma595
@srinivasasharma595 3 жыл бұрын
Thank you. It really helped me
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Glad it helped!
@romimaximus
@romimaximus 4 жыл бұрын
That was awesome..thankx fro sharing...
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
Thank you!
@sanjaypaul6651
@sanjaypaul6651 2 жыл бұрын
thank you so much sir 💖💖💖💖💖💖💖💖💖💖💖💖 you are a life saver
@Klklpia
@Klklpia 3 жыл бұрын
you are great my teacher. Thx
@rasulakhundov500
@rasulakhundov500 2 жыл бұрын
Thank you so much man
@akks6988
@akks6988 Жыл бұрын
Thanks Brother🤜🤛
@mle3638
@mle3638 2 жыл бұрын
Nice Tutorial, thank you very much. Just one question, how come you are not getting any CORS error since you have not set that up? Thanks
@harisrama1
@harisrama1 2 жыл бұрын
Listen man YOU ARE A FUCKING LEGEND
@quasarkid4256
@quasarkid4256 2 жыл бұрын
This helped a lot thank you
@itumo2645
@itumo2645 2 жыл бұрын
18:43 is that a pic KSI on your desktop folder? LOL
@ewolz
@ewolz 3 жыл бұрын
Im used to deploying my MERN app all on Heroku. Is it advantageous to have your client and server hosted seperately e.g. Netlify - Heroku or Heroku only. Is that best practice? What about price implications if you seperate them, do you end up paying more. I'm also wondering what is generally the cheaper option for a production environment, AWS Beanstalk? Netlify?
@apeiron4409
@apeiron4409 4 жыл бұрын
I have some question! I just deployed my react to netlify, and server to heroku. But the problem is that heroku seems to sleep. And I think it doesn’t wake up by accessing to the netlify, but only when accessing to heroku. Is there anyway to fix that? Thank you!
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
Hey, so the free tier in Heroku sleeps when there is no one actively in it or if no changes are being pushed. This is something unfortunate about it but its cheap to upgrade!
@apeiron4409
@apeiron4409 4 жыл бұрын
@@PedroTechnologies Thank you for the answer!
@hummingbird2913
@hummingbird2913 2 жыл бұрын
LOVE ! Thanks
@homeofbtsarmy8113
@homeofbtsarmy8113 3 жыл бұрын
Hey Pedro, I am a beginner in React. Your tutorials are life-saver for me. Thank You so much. Does this tutorial works if I am using MySQL instead of MongoDB?
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you! Yes it works but you would have to deploy the mysql db elsewhere, I have a video on doing it with mysql!
@podSnippets_10
@podSnippets_10 2 жыл бұрын
thank you pedro. Heroku deployment errors is moslty caused by forgeting the script :{"start":"node index.js"} and also using bcrypt for password hashing. so if you are using bcrypt delete it and replace it cryptojs which is another tool for password hashing
@pmmreddynitw
@pmmreddynitw 2 жыл бұрын
Hey great content thanks. Do we need to upload node_modules also to heroku?
@stanislaustankevich5445
@stanislaustankevich5445 3 жыл бұрын
Thanks for nice tutorial! Is it possible though to deploy the whole fullstack app to Netlify without using heroku? I mean making express app serve the /build folder
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
It is not advised since I don't think netlify has an option to deploy an api! If they do then it's probably new
@easytutorialdarija
@easytutorialdarija 2 жыл бұрын
thank you very much bro
@mithunpillay4428
@mithunpillay4428 3 жыл бұрын
Noice! Which Mcbook you using ? any recommendations
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
I use the macbook pro 2019! I really like it, but the macbook air is good enough if it has a lot of RAM!
@shaheen-e-iqbal744
@shaheen-e-iqbal744 Жыл бұрын
hey @Pedro Tech i am not able to make account on heroku beacuse it is asking for credit card and i dont have any credit card.is there any way to do it without credit card
@bennurirfan6968
@bennurirfan6968 3 жыл бұрын
Will it take our project from local host to live on internet ??
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Yep
@bennurirfan6968
@bennurirfan6968 3 жыл бұрын
@@PedroTechnologies thanks bro it’s very helpful
@llbeerus7728
@llbeerus7728 3 жыл бұрын
Hey this method works very well , i just cant seem to get the connection to the backend right from the frontend , proxy doesn't work and i get cors error when i try something else, can you help?
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Hey, interesting! Did you try applying cors? Doing somehting like app.use(cors())?
@llbeerus7728
@llbeerus7728 3 жыл бұрын
@@PedroTechnologies I actually went through and saw when you did this and apploed it and it worked
@abdoemad6938
@abdoemad6938 4 жыл бұрын
Should we do the same thing if we deal with EJS and our project wasn't build using React?
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
So with ejs you can just upload to heroku directly! No need for netlify!
@abdoemad6938
@abdoemad6938 4 жыл бұрын
@@PedroTechnologies First, thank you for your helping and nice video :) When I uploaded just the server part, everything was fine, but when I try to upload the full project, this error appears "fatal: the remote end hung up unexpectedly"
@nethmindulsara8800
@nethmindulsara8800 3 жыл бұрын
thank you man ❤️
@showbikshowmma3520
@showbikshowmma3520 3 жыл бұрын
which is better google cloud, aws or netlify??? for hosting a full stack webapp
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
If it is a business then AWS for sure! Netlify can't host a fullstack app, only frontend!
@souvik2930
@souvik2930 2 жыл бұрын
Getting not found error after deploying server code to heroku. Do I need to change anything on package.json or adding pro file inside server?
@srijandasbiswas4864
@srijandasbiswas4864 2 жыл бұрын
I have used localstorage for auth in react , and localstorage is not working on the netlify hosted website. Any suggestions??
@romimaximus
@romimaximus 4 жыл бұрын
i have a quick question ?..on my node js backend -> should i create ".env" file to put my Mongo Atlas username, password and link to database process variables ? do you think nobody would be able to access my username and password info..?
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
Yes! Put that information in the .env file. I didn't in the video cause I wanted to keep it as simple as possible, but always put sensitive stuff on the .env and put the .env in the gitignore
@gauravmavani1413
@gauravmavani1413 4 жыл бұрын
in heroku if i attach my credit card can i access free service of my simple projects??? bcz i am scared of automatic charges of the card soo please tell me.....!!
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
Yes, don't worry they won't charge you if you don't use a paid service. I've been using heroku addons for about 1 year and I was never charged
@davidzim2824
@davidzim2824 2 жыл бұрын
Thanks a lot man! it really help. I just wont to add that for me it does not work on heroku until I added a "procfile". which is text file that contain only this: web:node
@shawn.builds
@shawn.builds 2 жыл бұрын
this worked for me too. in the same folder as server.js, I added a file called Procfile (make sure it has no file extension) inside Procfile, I only had this text :web:node where server.js is the name of my file. then I did the git commands again, and the build worked!
@jonathanadel3831
@jonathanadel3831 2 жыл бұрын
I have a problem with the first heroku command in the command line, they say "the term heroku is not recognised", what should i do?
@urbn838
@urbn838 2 жыл бұрын
Good video !
@sidyka6568
@sidyka6568 3 жыл бұрын
super tuto think you so much
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
You are welcome!
@justanaverageguy4739
@justanaverageguy4739 3 жыл бұрын
4:18 nice choice
@RoySukrit
@RoySukrit 3 жыл бұрын
Hey will this be scalable? Or we should use AWS for big apps with many users?
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
I recommend AWS for big apps 100% of the time!
@ahmadmehmood9908
@ahmadmehmood9908 3 жыл бұрын
Are you using cors package
@rohan1765
@rohan1765 3 жыл бұрын
I want to build a website for a company using mern , it's a portfolio website which has 2 forms of which data should go to the email as soon as submitted , I don't need expensive hosting but a decent one , suggest me what should I use Pedro?
@reynaldlamury4772
@reynaldlamury4772 3 жыл бұрын
what if you need to upgrade mongoDB storage, is it required to pay extra for upgrading mongoDB storage?
@robbinluo2810
@robbinluo2810 2 жыл бұрын
There's correct start in scripts, and I connected my app to mongoDB when developing, but I still got the h10 error when deploying. I tried to fix it following some other instructions, such as create a Procfile not set a hard port. All didn't work. Is there any other possible way to save me from deploying my first web? It's a ecommerce web with quite a lot of functions. Everything works fine locally.
@dajman5857
@dajman5857 4 жыл бұрын
Hey! Can you say why did you uploaded it on heroku AND netlify ? For me it works even without netlify. Thanks in advance
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
Hey, so it does work without netlify if you deploy both the client and the server to heroku. However I prefer separating the servers that host my client from the one that hosts my server due to many reason. Mainly, most large scale projects have this separation due to performance reasons. I also find it easier to catch errors and know immediately if they are being caused by the frontend or the backend!
@dajman5857
@dajman5857 4 жыл бұрын
Oww, thanks! But do you happen to know how to host the client side with npm? I mean I have really easy application with server and ejs files. I don't know whether there's client and server side. It's all plain js, ejs
@sskdev5116
@sskdev5116 3 жыл бұрын
Question would the heroku side remain running since the free version shuts down and I know netlify and vervet servers are running continuously
@fidellis-3388
@fidellis-3388 3 жыл бұрын
is there a problem if i deploy both the server and client to heroku and then deploy again the client on netlify because i didnt create a server folder for my project
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
I think there might be issues because both the client and server should have different nodemodules folders and different packages.json
@paraspatil1375
@paraspatil1375 2 жыл бұрын
That was great tutorial you really explained in detail. But I think that you should add database url in dotenv file
@_just_for_fun_4472
@_just_for_fun_4472 2 жыл бұрын
Hey can you please tell your theme of the vs code
@mathewsjoby6455
@mathewsjoby6455 2 жыл бұрын
For instance, I host my MERN App and incase I turn my system off, will the Application have access to the server?
@pjguitar15
@pjguitar15 3 жыл бұрын
Hey Pedro, I successfully deployed my mern app to heroku but the problem is for some reason, it takes long time to load everytime i reopen my deployed app. How to speed it up?
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Interesting! I believe this happens sometimes with heroku because it is free! It depends on the region as well!
MERN Tutorial For Beginners | Learn MERN In 60 Minutes
59:40
PedroTech
Рет қаралды 165 М.
Deploying A React, Express, MySQL Website Tutorial
28:57
PedroTech
Рет қаралды 88 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 79 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Heroku Is Dead, Here's What I Recommend
11:59
Theo - t3․gg
Рет қаралды 268 М.
How to deploy MERN applications 🚨 (Heroku and Atlas)
32:33
The Full Stack Junkie
Рет қаралды 24 М.
Build and Deploy a MERN Stack Application | Complete MERN Stack Tutorial
28:27
How to Do 90% of What Plugins Do (With Just Vim)
1:14:03
thoughtbot
Рет қаралды 910 М.
React Hooks Course - All React Hooks Explained
1:26:21
PedroTech
Рет қаралды 1,1 МЛН
HEROKU CANCELLED - Deploy FullStack NodeJS App To Render
20:32
ZinoTrust Academy
Рет қаралды 30 М.
REST API Crash Course - Introduction + Full Python API Tutorial
51:57
Kubernetes Crash Course for Absolute Beginners [NEW]
1:12:04
TechWorld with Nana
Рет қаралды 2,9 МЛН
Easily Deploy Full Stack Node.js Apps on AWS EC2 | Step-by-Step Tutorial
29:00
React Tutorial for Beginners
1:20:04
Programming with Mosh
Рет қаралды 3,6 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 79 МЛН