- Our NodeJS App is dependent on v18.20.8, you need to install the similar version
- TCP Port 3000 is enabled in Security Group
# Be root user for all installation
sudo su
# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
# in lieu of restarting the shell
\. "$HOME/.nvm/nvm.sh"
# Download and install Node.js:
nvm install 18
# Install yarn
apt install cmdtestURL --> https://nodejs.org/en/download
node -v # Should print "v18.20.8".
nvm current # Should print "v18.20.8".
npm -v # Should print "10.8.2".- Make sure we are root user
sudo su- Clone the app
git clone https://github.com/amigo-nishant/getting-started.git- Change the directory
cd getting-started- Deploy the App
npm install
node src/index.js- Test the App Frontend
http://public-ip-ec2:3000/