Book Image

Server-Side Enterprise Development with Angular

By : Bram Borggreve
Book Image

Server-Side Enterprise Development with Angular

By: Bram Borggreve

Overview of this book

With the help of Server-Side Enterprise Development with Angular, equip yourself with the skills required to create modern, progressive web applications that load quickly and efficiently. This fast-paced book is a great way to learn how to build an effective UX by using the new features of Angular 7 beta, without wasting efforts in searching for referrals. To start off, you'll install Angular CLI and set up a working environment, followed by learning to distinguish between the container and presentational components. You'll explore advanced concepts such as making requests to a REST API from an Angular application, creating a web server using Node.js and Express, and adding dynamic metadata. You'll also understand how to implement and configure a service worker using Angular PWA and deploy the server-side rendered app to the cloud. By the end of this book, you'll have developed skills to serve your users views that load instantly, while reaping all the SEO benefits of improved page indexing.
Table of Contents (5 chapters)

Introduction

In this chapter, we will add a service worker to the application that we built in the previous chapters.

We will add the Angular service worker module to our application and configure it to convert the app into a Progressive Web App.

What is a Service Worker?

A service worker is a script that the browser runs in the background that acts as a network proxy to manage network requests programmatically. It sits between the network and the device and caches content, enabling an offline experience for the user.

In addition to caching data, it can also synchronize API data in the background and add things such as push notifications.

What is a Progressive Web App?

A Progressive Web App (PWA) is a term that is used for web applications that behave similar to a native mobile application. Similar to native apps, they allow an application to be started when the user is offline, caching the UI elements and API calls to display an initial page. This way, a user can...