Deploy an Angular app with nginx

Debabrata Dash
3 min readJul 25, 2021

In this article we are going to discuss about deployment of an Angular app with nginx webserver

Angular with nginx

What is nginx?
nginx is a open source, free high performance HTTP webserver used for website hosting, reverse proxying, caching, load balancing. Initially it was designed as we webserver in addition to it’s HTTP server capabilities it can perform as a proxy server for email(IMAP,POP3 and SMTP) and a reverse proxy and load balancer for HTTP, TCP and UDP protocol.

Deploying Angular app with ngnix
Step 1: Downloading ngnix

You can download ngnix from the http://nginx.org/en/download.html official website of ngnix

Unzip nginx in your server shown as below

Step2: Building an angular app
Build your Angular app with below command and it will generate a dist folder as shown below:


ng build — prod

--

--

Debabrata Dash

At heart an entrepreneurial, learner, innovator. A dreamer with a passion to excel. Read all stories on medium.