Skip to content

Instantly share code, notes, and snippets.

View Savinda96's full-sized avatar

Prageeth Dassanayake Savinda96

View GitHub Profile
@Savinda96
Savinda96 / how-set-up-node-ec2.md
Last active August 12, 2021 03:10
Setting up simple node application in EC2

Deploy NodeJS Application into EC2 with GitHub actions

This is an experience shared on getting a simple node application deployed into EC2 with github actions.

Create a simple node application

  1. Go the project directory and type the following commands mkdir node-hello && cd node-hello
  2. Type npm init in your terminal to initiate a node project (Make sure you have node installed if not follow the guide here)
  3. Create the index.js file (touch index.js)