Can't tell you how much this helped me. You are the only resource I found for a MERN with AWS that doesn't need elastic beanstalk , docker , ect. Impressive and so well documented.
I 2 days tried to figure out how connect certificates to nginx in EC2. This video was super useful. Step by step. 10 min and everything work for me. Thank you!!!
Hello, Keith. Very good tutorial, however, according to this explanation, you hosted your SSL certificate only above the frontend part of the application. Hence, there is en error appearing each time React API is trying to access the NodeJS backend via HTTP. Setting Self Signed SSL over NodeJS is not the option due to it's insecure certificate. Do you have any tips for solving such a problem?
Can you tell me how did you set up your prod server and public paths for client side code as well as server side landing pages for login, and how you built this with Webpack html plugin ? I am confused setting up prod build whereas dev build works like a charm.
Thank you sir , both the article and the video were a life-saver ..... btw there is an issue with dependencies on your MERN-boilerplate project. I replaced the project with my own and everything ran nicely.
This video is so good. Everything worked great in the video. I was wondering with the base code you start out with how do you build it (like you do with a create-react-app). Because I went through your whole guide and I have a plugin that shows when a page uses React and when I go look at the site I've successfully deployed this code to it still says its in development mode. I did a little searching around with webpack as I'm still a bit unfamiliar with it and couldn't figure it out on my own. So I guess my main question is how to I fully use this code base, with my own project, and create a production deployed site? Great work with this tutorial. It's amazing.
If you need to ssh back into the EC2 after setting up the SSL section will you need to use a different .pem ? I can't seem to log back in after setting that piece up after I got disconnected.
Not the specifics but your goal is to run the on two different internal ports. The map expose those internal ports. Typically with one, people use 8080 and map it to 80 or 443 (for SSL).
@@KeiththeCoder I have two node js applications. One runs on port 5000 and the other on port 5001. But nginx has only port 80 to serve one application. How to setup nginx to serve the second application which runs on port 5001.
help please... I am getting error.. net::ERR_SSL_PROTOCOL_ERROR, I have also used backend api call using ... is it ok or not site is running on https but i am not able to make backend api calls please help
Couldn't get this to work. The npm install hung forever. I ended up creating a PERN stack project (just replace mongodb with postgresql). for anyone watching this vid, if you need help with this, I can tell you how I did it.
I am trying to do this with the following github boilerplate repo for MERN stack - github.com/Hashnode/mern-starter . But I am stuck at this step pm2 start server.js -- --production . Can anyone please help ? @Keith, the Coder.
Can't tell you how much this helped me. You are the only resource I found for a MERN with AWS that doesn't need elastic beanstalk , docker , ect. Impressive and so well documented.
Thank you. It was one of my main frustrations when getting started.
I 2 days tried to figure out how connect certificates to nginx in EC2. This video was super useful. Step by step. 10 min and everything work for me. Thank you!!!
Thanks Keith. Great video! I keep coming back! If anyone is having trouble getting this to work let me know and I might be able to help.
You're a life saver! You have NO idea how much this helped me! Thanks!
Best EC2 tutorial on the web for Node and React
Fantastic video! I followed many other tutorials and this was the only one that worked for me! Thank you!!!
really pleased this came up on my feed, subscribed. Having the narrative on medium is awesome
thank you! got this working. there are some webpack changes so if anyone is looking at this almost a year later and having trouble let me know
what changes are you talking about?
This is awesome! Happy that after 2 days finally found such good tutorial
Thanx a ton my friend. Seriously a great video and tutorial. I was able to set up a complete project from scratch to end.
Well done! Keep the MERN videos coming.
What a gangster! Keith tha man!!!
Good job man, this content is very helpful.
Did it actually work for you. Cause for me it doesn't!
This level of work needs to be appreciated. So, I would say very nice work man. Its really helpfull for MERN webapps.
You're a life saver! This helped me a lot, you are a genius, thank you so much!
Thankyou so much for this great tutorial!
Thanks, man I was stuck on hosting for quite a few days thanksssssss
so can i host a dynamic site (will actually save my data base and session information as users go to my page) using aws as said in this video?
Can u tell me how did u do it ? Because it is not working for me.
running "npm rebuild node-sass" should fix your css issue about 16 mins into your video. Awesome video by the way!!!
love love love you
You are an effing lifesaver.
Hello, Keith. Very good tutorial, however, according to this explanation, you hosted your SSL certificate only above the frontend part of the application. Hence, there is en error appearing each time React API is trying to access the NodeJS backend via HTTP. Setting Self Signed SSL over NodeJS is not the option due to it's insecure certificate. Do you have any tips for solving such a problem?
whats the solution ?
Great work
great video!
Great content !
Can you tell me how did you set up your prod server and public paths for client side code as well as server side landing pages for login, and how you built this with Webpack html plugin ? I am confused setting up prod build whereas dev build works like a charm.
Thank you sir , both the article and the video were a life-saver ..... btw there is an issue with dependencies on your MERN-boilerplate project. I replaced the project with my own and everything ran nicely.
This video is so good. Everything worked great in the video. I was wondering with the base code you start out with how do you build it (like you do with a create-react-app). Because I went through your whole guide and I have a plugin that shows when a page uses React and when I go look at the site I've successfully deployed this code to it still says its in development mode. I did a little searching around with webpack as I'm still a bit unfamiliar with it and couldn't figure it out on my own. So I guess my main question is how to I fully use this code base, with my own project, and create a production deployed site?
Great work with this tutorial. It's amazing.
If I’m using ec2 do I need a docker containers, thanks
Thank you so much. It helped me a lot
Thank you
how would i set up my existing node and react projects on there instead of the boilerplate?
Can you make the same mern stack deployment in google cloud service
Great...!!! It's work.
What is the process when we push the new code in node js or react? We need to re-build and re-start the pm2 again?
@mohamed javithur rahuman Hey did you find out the process of updating a product site? Git pull -> re-build reactjs -> restart pm2 -> restart nginx?
If you need to ssh back into the EC2 after setting up the SSL section will you need to use a different .pem ? I can't seem to log back in after setting that piece up after I got disconnected.
You will use the same .pem. Maybe try doing a "chmod 400 ./your.pem"
Thanks a lot!
Inceredible
Hi Keith, How to setup multiple node js applications using nginx?
Not the specifics but your goal is to run the on two different internal ports. The map expose those internal ports. Typically with one, people use 8080 and map it to 80 or 443 (for SSL).
@@KeiththeCoder I have two node js applications. One runs on port 5000 and the other on port 5001. But nginx has only port 80 to serve one application. How to setup nginx to serve the second application which runs on port 5001.
@@abhisycvirat use Docker and upstream servers and you’re solid.
Thanks man is this server currently capable of handling 100000 clients concurrent ? if not how many no it can handle
help please... I am getting error.. net::ERR_SSL_PROTOCOL_ERROR, I have also used backend api call using ... is it ok or not site is running on https but i am not able to make backend api calls please help
Thanks mate.
install cert bot doesnt work
Couldn't get this to work. The npm install hung forever. I ended up creating a PERN stack project (just replace mongodb with postgresql). for anyone watching this vid, if you need help with this, I can tell you how I did it.
I am trying to do this with the following github boilerplate repo for MERN stack - github.com/Hashnode/mern-starter . But I am stuck at this step pm2 start server.js -- --production . Can anyone please help ? @Keith, the Coder.
What's the meaning of "boilerplate project" ?
boilerplate refers to basic Skelton of project
Will single page apps work by doing this?
use surge for spa
Why there's nothing that runs all of this mess at once? D:
Or an image that loads up the server with MERN setup