app-ec2

1.0.0 • Public • Published

Deployment node app in EC2 server on Cloud

Simple node.js app that servers "A simple Node App is running on EC2 server"

Step 1: Install NodeJS and NPM using nvm

Install node version manager (nvm) by typing the following at the command line.

sudo su -
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash

Activate nvm by typing the following at the command line.

. ~/.nvm/nvm.sh

Use nvm to install the latest version of Node.js by typing the following at the command line.

nvm install node

Test that node and npm are installed and running correctly by typing the following at the terminal:

node -v
npm -v

Step 2: Install Git and clone repository from GitHub

To install git, run below commands in the terminal window:

sudo apt-get update -y
sudo apt-get install git -y

Just to verify if system has git installed or not, please run below command in terminal:

git — version

This command will print the git version in the terminal.

Run below command to clone the code repository from Github:

git clone https://github.com/kyprogramming/node-app-ec2.git

Get inside the directory and Install Packages

cd nodejs-on-ec2
npm install

Start the application To start the application, run the below command in the terminal:

npm start

Readme

Keywords

none

Package Sidebar

Install

npm i app-ec2

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

2.23 kB

Total Files

3

Last publish

Collaborators

  • kkyprogramming