Skip to content

Instantly share code, notes, and snippets.

View sagar285's full-sized avatar
๐Ÿ˜ƒ
online

sagar sagar285

๐Ÿ˜ƒ
online
View GitHub Profile
@sagar285
sagar285 / Slefhosted githu actions.
Last active June 23, 2024 12:46
Setup Github Actions on Ec2 instance with nodejs api
#step 1- Push Your code into Github
#step2 - Create aws instance
#step3 - connect to aws instance
#step4 - Go to Setting in Your Repository
#step5 - Click on Action - choose runners
@sagar285
sagar285 / gist:3f7542d13606dee3b525e3315b46d453
Last active June 15, 2025 17:22
aws deployment on instanc
Steps to deploy a Node.js app to aws using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
## 1. Create Free AWS Account
Create free AWS Account at https://aws.amazon.com/
## 2. Create and Lauch an EC2 instance and SSH into machine
I would be creating a t2.medium ubuntu machine for this demo.
## 3. Install Node and NPM
```