MERN Stack on AWS EC2 with SSL & Nginx (Production Ready)

Поделиться
HTML-код
  • Опубликовано: 12 янв 2025

Комментарии • 65

  • @Jason-navarro
    @Jason-navarro 7 лет назад

    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.

    • @KeiththeCoder
      @KeiththeCoder  7 лет назад

      Thank you. It was one of my main frustrations when getting started.

  • @liudmyladziubynska9247
    @liudmyladziubynska9247 5 лет назад +1

    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!!!

  • @envyhose6315
    @envyhose6315 3 года назад

    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.

  • @olusegunogunnaike6072
    @olusegunogunnaike6072 6 лет назад +7

    You're a life saver! You have NO idea how much this helped me! Thanks!

  • @AdioShu
    @AdioShu 5 лет назад +1

    Best EC2 tutorial on the web for Node and React

  • @milad950
    @milad950 4 года назад

    Fantastic video! I followed many other tutorials and this was the only one that worked for me! Thank you!!!

  • @darrinkinney2268
    @darrinkinney2268 4 года назад

    really pleased this came up on my feed, subscribed. Having the narrative on medium is awesome

  • @valm3333
    @valm3333 6 лет назад +1

    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

  • @antonegorov2953
    @antonegorov2953 4 года назад +1

    This is awesome! Happy that after 2 days finally found such good tutorial

  • @vinayakgupta9123
    @vinayakgupta9123 4 года назад

    Thanx a ton my friend. Seriously a great video and tutorial. I was able to set up a complete project from scratch to end.

  • @infiniteS3t
    @infiniteS3t 7 лет назад +1

    Well done! Keep the MERN videos coming.

  • @envyhose6315
    @envyhose6315 2 года назад

    What a gangster! Keith tha man!!!

  • @abdelilahaassou6333
    @abdelilahaassou6333 5 лет назад +1

    Good job man, this content is very helpful.

    • @jorgedardon5487
      @jorgedardon5487 5 лет назад

      Did it actually work for you. Cause for me it doesn't!

  • @BiswajitPatra13
    @BiswajitPatra13 7 лет назад

    This level of work needs to be appreciated. So, I would say very nice work man. Its really helpfull for MERN webapps.

  • @yellow.stickers
    @yellow.stickers 3 года назад

    You're a life saver! This helped me a lot, you are a genius, thank you so much!

  • @anubhavsingh9848
    @anubhavsingh9848 4 года назад

    Thankyou so much for this great tutorial!

  • @vaibhavbhardwaj6899
    @vaibhavbhardwaj6899 5 лет назад

    Thanks, man I was stuck on hosting for quite a few days thanksssssss

    • @jacobnehama-oit3768
      @jacobnehama-oit3768 5 лет назад

      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?

    • @manosriram
      @manosriram 5 лет назад

      Can u tell me how did u do it ? Because it is not working for me.

  • @frankblista
    @frankblista 6 лет назад +1

    running "npm rebuild node-sass" should fix your css issue about 16 mins into your video. Awesome video by the way!!!

  • @backgroundnoiselistener3599
    @backgroundnoiselistener3599 3 года назад

    You are an effing lifesaver.

  • @arau4408
    @arau4408 5 лет назад +3

    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?

  • @osydesmond9147
    @osydesmond9147 5 лет назад

    Great work

  • @omermindivanli2981
    @omermindivanli2981 5 лет назад

    great video!

  • @PabbaANUBHARATH
    @PabbaANUBHARATH 6 лет назад

    Great content !

  • @badrinarayanansridharan164
    @badrinarayanansridharan164 4 года назад

    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.

  • @DaggieBlanqx
    @DaggieBlanqx 5 лет назад +1

    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.

  • @ashsvendsen719
    @ashsvendsen719 6 лет назад +1

    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.

  • @maxamedcaxmed3249
    @maxamedcaxmed3249 Год назад

    If I’m using ec2 do I need a docker containers, thanks

  • @GobindaThakur
    @GobindaThakur 7 лет назад

    Thank you so much. It helped me a lot

  • @happinin
    @happinin 3 года назад

    how would i set up my existing node and react projects on there instead of the boilerplate?

  • @nextnik6932
    @nextnik6932 4 года назад

    Can you make the same mern stack deployment in google cloud service

  • @DUNIACARA
    @DUNIACARA 5 лет назад

    Great...!!! It's work.

  • @mohamedjavithurrahuman2218
    @mohamedjavithurrahuman2218 5 лет назад

    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?

    • @asdfkerub
      @asdfkerub 5 лет назад

      @mohamed javithur rahuman Hey did you find out the process of updating a product site? Git pull -> re-build reactjs -> restart pm2 -> restart nginx?

  • @Thaifighter686
    @Thaifighter686 6 лет назад

    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.

    • @KeiththeCoder
      @KeiththeCoder  6 лет назад

      You will use the same .pem. Maybe try doing a "chmod 400 ./your.pem"

  • @vikas5951
    @vikas5951 4 года назад

    Thanks a lot!

  • @hos7012
    @hos7012 5 лет назад

    Inceredible

  • @abhisycvirat
    @abhisycvirat 4 года назад

    Hi Keith, How to setup multiple node js applications using nginx?

    • @KeiththeCoder
      @KeiththeCoder  4 года назад

      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).

    • @abhisycvirat
      @abhisycvirat 4 года назад

      @@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.

    • @TannerBarcelos
      @TannerBarcelos 2 года назад +1

      @@abhisycvirat use Docker and upstream servers and you’re solid.

  • @fhgtfghgfg
    @fhgtfghgfg 3 года назад

    Thanks man is this server currently capable of handling 100000 clients concurrent ? if not how many no it can handle

  • @surajmishra432
    @surajmishra432 4 года назад

    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

  • @powerlogic1992
    @powerlogic1992 6 лет назад

    Thanks mate.

  • @arjay_2002
    @arjay_2002 3 года назад

    install cert bot doesnt work

  • @jorgedardon5487
    @jorgedardon5487 5 лет назад

    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.

  • @SethuNagappan
    @SethuNagappan 6 лет назад

    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.

  • @80Vikram
    @80Vikram 5 лет назад

    What's the meaning of "boilerplate project" ?

    • @TECHEDBYVVS
      @TECHEDBYVVS 5 лет назад

      boilerplate refers to basic Skelton of project

  • @dexter095
    @dexter095 5 лет назад

    Will single page apps work by doing this?

  • @adoreos
    @adoreos 5 лет назад

    Why there's nothing that runs all of this mess at once? D:
    Or an image that loads up the server with MERN setup