By Abubakkar Khan Fazla Rabbi
This guide will walk you through the steps to deploy an Angular application using Node.js (version 20.x) on an Ubuntu headless server with Nginx.
First, ensure your server is up-to-date:
sudo apt update && sudo apt upgrade
Install Node.js and npm using the NodeSource repository:
curl -sL <https://deb.nodesource.com/setup_20.x> | sudo -E bash -
sudo apt-get install -y nodejs
Install the Angular CLI globally:
npm install -g @angular/cli@17