DEV Community

Cover image for Deploying a Production-ready React-Express app on AWS

Deploying a Production-ready React-Express app on AWS

Ryuichi Miyazaki on August 26, 2020

In this tutorial, I will be going over to how to deploy a Javascript app from start to finish using AWS and EC2. Recently, my partner Tu Vo and I l...
Collapse
 
vitalykarasik profile image
Vitaly Karasik • Edited

1) Regarding NodeJS - as @moviemaker93 wrote, with Elactic Beanstalk you can deploy backend in the "Heroku style"
2) As for React FE - the best practice is deploy to S3. It's static site after all.

why would any startup prefer aws over heroku/netlify/glitch/etc

AWS is providing much more services and flexibility. Plus it's cheaper.

Collapse
 
zkadish profile image
zach kadish

One of the best tutorials I have done in a number or years! Amazing thanks for contributing!

Collapse
 
vaibhavshn profile image
Vaibhav Shinde

Yes, but I think this could be for people to get familiar with AWS.

Vercel also is a great choice for node deployment, just a few commands!

Collapse
 
jamesbalcombe83 profile image
James Balcombe

This is really clear and easy to follow. However, I did everything up to the Setting up CD, when I visit the EC2 ip the api call is "Oops, something went wrong" however, if i add /api to the url I see the json response from the server. Any suggestions as to what I missed or what went wrong?

Collapse
 
bobanbg79 profile image
Slobodan Krasavcevic

Have the same situation. When I open elastic IP, I see "Oops, something went wrong" even though elasticIp/api works fine.

Collapse
 
andrewbaisden profile image
Andrew Baisden

Wow thats a pretty comprehensive guide quite thorough. Many companies use AWS so its quite useful.

 
vitalykarasik profile image
Vitaly Karasik • Edited

for startup it will always be easier to work with saas solutions

AWS has a lot of services, and this article is using the IaaS, while there are many SaaS solutions from AWS.
IMHO, Heroku is nice for MVP/PoC or side projects, but on the next steps company should go to AWS/GCP.

PS: unfortunately, I'm not getting $$ from AWS :-(

Collapse
 
placideirandora profile image
Placide IRANDORA

Thanks for this productive article. It's very helpful for people getting into deploying full-stack projects on AWS EC2.

Collapse
 
deveshb15 profile image
Devesh🚀

Thank you so much, loved the explanation!

Collapse
 
moviemaker93 profile image
MovieMaker93 • Edited

Yee setup is crazy, but maybe with fargate or elasticbeanstalk would have been simpler. But as said by vaibhav this is nice article to get familiar with basic setup on aws. Nice work!