Skip to content

hammad-air/AWS-deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node AWS Deployment

Great for testing simple deployments on AWS EC2 Instance

Step 0: Create a new instance

Select EC2 Instence Connect, Select Connection type Connect using EC2 Instance Connect and hit connect

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/hammad-air/AWS-deployment.git

Get inside the directory and Install Packages

cd AWS-deployment
npm install

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

npm start

Now your app is ready to serve

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published