DEV Community

Cover image for DEPLOY A REACT + NODE APP TO PRODUCTION ON AWS

DEPLOY A REACT + NODE APP TO PRODUCTION ON AWS

Asim on May 23, 2020

A detailed walkthrough on setting up a production-ready web server from scratch on the Amazon EC2 service. This article is originally posted here...
Collapse
 
khrisl33t profile image
kHRISl33t •

I think Beanstalk (with Docker) + RDS for backend, S3 for frontend would be a better solution for production use. Way easier to manage, and you will get a bunch of handy features out of the box. (auto scaling, monitoring, alerts)

Collapse
 
asim_ansari7 profile image
Asim •

Agreed, S3 would have been a better option for serving the front end. I haven't worked with Beanstalk yet!

Collapse
 
hozefam profile image
Hozefa Mangalorewala •

Agreed, please check this article and provide your feedback dev.to/hozefam/create-a-production...

Collapse
 
fasani profile image
Michael Fasani •

What does this cost a month? I’m interested in building a small node app, it needs node + DB. I found a page that uses beanstalk with auto scale and provided cost was $27 approx per month. I have never done anything on AWS except CDN static assets. Thinking about hosting a node app there just for learning AWS reasons. Nice write up, will read it fully later.

Collapse
 
nosjoel profile image
nos-joel •

Hi. It is really good. It is missing the command to install nginx via terminal.

Collapse
 
asim_ansari7 profile image
Asim • • Edited

Thanks a lot for pointing that out.

Collapse
 
swapnil0545 profile image
Swapnil Mhaske👨‍💻🎮☕🌄 • • Edited

Looks good. But I would rather pick s3 bucket for hosting the react app here.

Collapse
 
asim_ansari7 profile image
Asim •

Yeah, that could be done too 👍

Collapse
 
djariss profile image
Davor Veselinovic •

Great tutorial no doubt, but why the hell have you made those nginx blocks like images, it would be a lot easier to just copy/paste the server block code...

Collapse
 
awesomekhan18 profile image
Asim •

Hi Asim

Collapse
 
arvindamirtaa profile image
Arvind Nedumaran •

How would you compare this with AWS Amplify? Which do you prefer?

Collapse
 
thiagocosta7 profile image
Thiago Costa •

Awesome, Asim! Congratulations! Could you tell me the approximate monthly cost to maintain an application like this on AWS? Would it be cheaper if I opt for the S3 + Beanstalk solution? Thanks!