Deploy a React App using Nginx



Deploy a React App using Nginx

Deploy a React App using Nginx

In this video, I will show how to deploy a React application on an EC2 Instance using Nginx. React applications are SPAs hence Nginx is a good option to serve static files. I will also show how to install Nginx and NodeJS on the EC2 Instance.
Once we have installed all the required modules, the next step is to clone the project, run the build script and start the Nginx Server.

Code: https://github.com/enricop89/react-app-expressjs-nginx

00:00 Introduction
00:42 Create React App
01:07 Create React Routes
03:19 Create EC2 Instance
05:01 Install Nginx and NodeJS on the EC2 Instance
06:42 Clone the Repo and build the Project
09:15 Nginx Config explanation
12:53 Conclusion

If you want to learn more about DynamoDB and AWS Services, make sure to
subscribe to the channel:

Youtube 🎥 – https://www.youtube.com/channel/UCrgmzG2o4xlBYzm7OB7qZFA

🌎 Find me here:
Twitter – https://twitter.com/enricop89

Comments are closed.