Skip to content

Instantly share code, notes, and snippets.

View rajanwalia4tech's full-sized avatar
🏠
Working from home

Rajan Walia rajanwalia4tech

🏠
Working from home
  • india
View GitHub Profile
@rajanwalia4tech
rajanwalia4tech / aws-launch-template-datascript
Created November 25, 2024 07:34
AWS launch template data-script
#!/bin/bash
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1
cd /home/ubuntu/
sudo apt update -y
sudo apt install nodejs -y
sudo apt install npm -y
mkdir -p /home/ubuntu/.ssh
ssh-keyscan -t rsa github.com > /home/ubuntu/.ssh/known_hosts
git clone https://github.com/singhsanket143/API_Gateway.git
cd API_Gateway

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean 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.

@rajanwalia4tech
rajanwalia4tech / README.md
Created September 18, 2023 10:53 — forked from piyushgarg-dev/README.md
Kafka Crash Course