Book Image

Angular Projects

By : Zama Khan Mohammed
Book Image

Angular Projects

By: Zama Khan Mohammed

Overview of this book

<p>Angular is one of the best frameworks, not only for building web applications, but also for building applications on other platforms such as desktop and mobile. It is packed with amazing web tools that allow developers to become more productive and make the development experience a happier one </p><p>This book will be your practical guide when it comes to building optimized web apps using Angular. The book explores a number of popular features, including the experimental Ivy rendered, lazy loading, and differential loading, among others, in the projects. It starts with the basics of Angular and its tools, which will help you to develop and debug Angular applications. You will learn how to create an SPA using Angular Router, and optimize it by code splitting and Preloading Routes. We will then build a form-heavy application and make forms reactive by using Reactive Forms. After that, we will learn how to build a Progressive Web App, and a server-side rendering app, as well as a MonoRepo app. Furthermore, we will also dive into building mobile apps using Ionic and NativeScript. Finally, we end the book by creating a component library for our application using Angular CDK and then testing it. </p><p>By the end of this book, you’ll have gained comprehensive insights into using Angular, along with hands-on experience in creating intuitive real-world applications.</p>
Table of Contents (19 chapters)
Title Page
Copyright and Credits
Dedication
Foreword

Setting up our Nest.js application

Nest is a Node.js framework that's used to build scalable, efficient, and reliable server applications. It shares some similarities with the Angular framework, even though they solve completely different problems. For example, in terms of TypeScript, similar dependency injection techniques and decorators are used for its main building blocks. These similarities between Nest and Angular makes them a perfect fit for each other.

Let's create an application using Nest.js. Instead of installing @nestjs/cli globally using npm, let's just use npx to make use of @nestjs/cli and create a new Nest.js application. Run the following command in the CLI:

> npx @nestjs/cli new es-api

This should create a Nest.js app in the es-api folder. Let's add Mongoose to our application. Mongoose is used to connect to MongoDB.

Let&apos...