Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
35 views

Angular Project

The document outlines the steps to create and deploy an Angular frontend app using Docker. It involves installing Nodejs, NPM, Angular CLI, VS Code, Docker desktop, and NGINX. An Angular app is generated with the CLI and run locally. Then a Dockerfile is created in the app directory to build a docker image. The image is run as a container exposing port 80, making the app available through NGINX on the container's port.

Uploaded by

Swapnil Dhande
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

Angular Project

The document outlines the steps to create and deploy an Angular frontend app using Docker. It involves installing Nodejs, NPM, Angular CLI, VS Code, Docker desktop, and NGINX. An Angular app is generated with the CLI and run locally. Then a Dockerfile is created in the app directory to build a docker image. The image is run as a container exposing port 80, making the app available through NGINX on the container's port.

Uploaded by

Swapnil Dhande
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Creation and deployment of Angular frontend app using docker.

Requirements:
1. Nodejs
cmd to install Nodejs
-$ sudo apt install nodejs
2. NPM
cmd for NPM
-$ sudo apt install npm
3. Angular CLI
cmd to install Angular CLI
-$ sudo npm install -g @angular/cli
4. V S Code
5. Docker desktop
6. NGINX

Step 1: Install all dependencies and packages


Step 2: Create new angular project with all default settings
cmd for that:

-$ ng new angular-app --defaults


Step 3: Run the app
-$ cd angular app

-$ ng serve

Step 4: Our app is running on port 4200 directly


Step 5: Now same project we will deploy using docker and NGINX
For that we will open our project in V S code and create a Dockerfile for image building, we can also
do it directly into terminal itself.
Step 6: Build the docker-image from it

Step 7: Run Container

Step 8: App is running on port 80 inside docker container through NGINX web server

You might also like