Hosting React Application on AWS EC2

Published: 13 November 2024
on channel: ZYRON
23
0

0:00 Introduction
1:50 Key Pair Setup
4:12 Login to Instance Using WinSCP
6:00 Executing Commands
13:05 Change Mode (chmod)
14:59 Inbound Rules Configuration
16:02 HTTP, HTTPS, and SSL Certificate Setup
22:08 Login with WinSCP (again)

COMMMANDS
sudo su
sudo apt-get update
sudo apt-get install curl

Install nvm
curl o https://raw.githubusercontent.com/nvm... | bash

Load nvm
source ~/.bashrc




Install the latest Node.js version
nvm install node

#check installation
node -v
npm -v


sudo apt install nginx -y
nginx -v


#mode to main dir
cd /
ls
cd var
cd www
cd html


npm create-react-app demo
ls
chmod 777 -R demo/(change mode read,write,execute world writtable)

also set inbound rule for 3000

then copy files to demo from local(except node modules)
npm i
chmod 777 -R *
npm i pm2 -g
pm2 start npm -- start





Dont click:    / @zyron75  

wordpress Resources
https://github.com/akshaychemy/WORDPR...


Watch video Hosting React Application on AWS EC2 online without registration, duration hours minute second in high quality. This video was added by user ZYRON 13 November 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 23 once and liked it 0 people.