Summary
In this chapter, we explored the techniques and capabilities of Angular when deploying our application to production.
We started by uploading our backend to the cloud, where it will be available for our frontend application.
Then, we adapted our application to differentiate the development environment and the production environment using the Angular feature of environment.ts
files.
We explored the ng build
command and all the tasks that Angular performs for us to make our application as lean as possible to be faster for our users.
We learned about Docker and how we can package our Angular application to run on a web server such as Nginx regardless of the type of machine our application runs on.
Finally, we learned about another way to deploy to the cloud with the Azure Static Web Apps service and saw how it automates this process by creating a GitHub action script.
In the next chapter, we will explore the latest Angular innovations, including Angular Signals...