Steps to Install & Configure Angular CLI
Before following the steps to deploy the application, make sure that Angular CLI is already installed in the system if it is not then run the following command.
npm install -g @angular/cli
The very first step would be to bundle up an application for production before its deployment.
- Navigate to the project directory.
cd project-folder
- Run the ng build command in Angular CLI
ng build --prod
After completing & executing the above-mentioned steps, the following process will be displayed:
- To get the preview of the application, run the following command:
ng serve --prod
- This starts a local HTTP server with production files. Navigate to http://localhost:4200/ to view the application. With these steps, the application is ready for deployment.
Contact Us