Sitemap
gauresh ravindra narvekar

gauresh ravindra narvekar

Devops project

1 min readJan 24, 2026

--

Devops first project
Deploy a React App on Ubuntu VM Using Nginx
Steps as follows
1.aws ec2 instance creation-keypair creation,security group-allow ssh and http traffic
2.Install gitbash to take access of ubuntu vm
3.goto folder where u placed your keypair and change permission for privacy
4. Run ssh command
5.Install Required Software and Application Modification
Install nodejs and npm which is required to run java application and dependencies
6.Clone React application repo from github
7.Install nginx,start and it
8.Build application
Goto Project root folder where u install dependencies and build application
execute commands to install dependencies and builld it
9.Serve React app via nginx
Copy build files in /var/www/html which is the default web root directory used by Nginx to serve website content.
Change ownership and mode so Gives the website owner full control, and allows Nginx and visitors to read the files, but prevents them from modifying them.
10.Configure nginx and replace default nginx configuration
All routes load index.html.Replaces Nginx default configuration so it can correctly serve a React single-page application
11.Restart nginx
To apply all the changes
12.Test the app
http://yourpublicip
You can check it live by accessing this url http://44.192.17.109/

Get gauresh ravindra narvekar’s stories in your inbox

Join Medium for free to get updates from this writer.

Lead Co-Mentor: Praveen Pandey
Co-Mentors: Manish Kumar, Olajide Salami, and Nkechi Anna Ahanonye
Thanks to all the members of DMI community and Pravin Mishra sir for this incredible opportunity.

P.S. This post is part of the DevOps Micro Internship (DMI) Cohort-2 by Pravin Mishra. You can start your DevOps journey by joining this WhatsApp community. https://lnkd.in/dKEMF6gJ

--

--