# Add node
# Step : 1
curl -o- <https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh> | bash
# Step 2 :
source ~/.bashrc
# Step 3 :
nvm install --lts
# Add nginx
sudo apt update
sudo apt install nginx
# Add pnpm
npm install -g pnpm
npx prisma migrate dev
6 Build monorepo
pnpm run build ( Globally )
# Install pm2 ( process manager )
npm install -g pm2
pm2 start npm --name "http-server" -- start
pm2 start npm --name "ws-server" -- start
pm2 start npm --name "fe-server" -- start
# Open port ( 3000, 30001 , 30002 ) by changing inbound rules in Security Groups
# Add DNS subdomains to your domain
