Simple node.js app that servers "A Monk in Cloud"
Great for testing simple deployments on Cloud
Install node version manager (nvm) by typing the following at the command line. sudo yum install curl -y
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bashActivate nvm by typing the following at the command line.
source ~/.bash_profileUse nvm to install the latest version of Node.js by typing the following at the command line.
nvm install nodeTest that node and npm are installed and running correctly by typing the following at the terminal:
node -v
npm -vTo install git, run below commands in the terminal window:
yum install git -yJust to verify if system has git installed or not, please run below command in terminal:
git — versionThis command will print the git version in the terminal.
Run below command to clone the code repository from Github:
git clone <url>Get inside the directory and Install Packages
cd nodejs-on-ec2
npm installStart the application To start the application, run the below command in the terminal:
npm start