Book description
Build SEO-friendly, progressive web applications that live on the web, mobile, or desktop, using the latest Angular Universal which is loaded with powerful features such as components, directives, and services
Key Features
- Explore differences between server-side and client-side rendering
- Learn how to create a progressive web app with great SEO support
- Discover best practices and how to use them to develop an app
Book Description
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.
What you will learn
- Identify what makes an Angular application SEO-friendly
- Generate commands to create components and services
- Distinguish between the container and presentational components
- Implement server-side rendering using Angular Universal
- Create a web server using Node.js and Express
- Add dynamic metadata to your web application
- Deploy a server-side rendered app to the cloud
- Implement and configure a service worker using Angular PWA
Who this book is for
Server-Side Enterprise Development with Angular is for you if you are an experienced front-end developer who wants to quickly work through examples that demonstrate all the key features of server-side development. You need some prior exposure to Angular to follow through this book.
Publisher resources
Table of contents
- Preface
-
1. Creating the Base Application
- Introduction
- Installing Angular CLI
- Creating a New Application
- Configuring Global Styles
-
Creating the UI for the Application
- Creating the UiModule
- Exercise 7: Creating the UiModule
- Exercise 8: Importing the UiModule
- Exercise 9: Updating the AppComponent Template
- Creating the Layout Component
- Exercise 10: Generating the LayoutComponent
- Exercise 11: Adding the LayoutComponent to the AppRoutingModule
- Exercise 12: Implementing the LayoutComponent Template
- Creating the Header and Footer
- Downloading the Angular Logo
- Exercise 13: Adding the Header to the LayoutComponent
- Exercise 14: Adding the Footer to the LayoutComponent
- Activity 3: Moving the Header to a Separate Component
- Activity 4: Moving the Footer to a Separate Component
-
Creating the App Logic
- Types of Components
- Creating the Module
- Exercise 15: Generating the PostModule
- Exercise 16: Lazy Loading the PostModule
- Creating the Container Components
- Exercise 17: Generating the PostListComponent
- Exercise 18: Generating the PostDetailComponent
- Exercise 19: Defining our Data Model Types
- Creating a Service for API Interaction
- Exercise 20: Using the Environment to Store the API Endpoints
- Exercise 21: Generating and Implementing the PostService
- Exercise 22: Using the PostService in the Container Components
- Exercise 23: Importing the HttpClientModule to Enable the HttpClient
- Creating the Presentational Components
- Exercise 24: Generating the PostItemComponent
- Exercise 25: Generating the PostProfileComponent
- Exercise 26: Using the PostItemComponent
- Resolving Data Using the Router
- Exercise 27: Creating a Resolver for the getPosts Method
- Exercise 28: Creating a Resolver for the getPost Method
- Exercise 29: Adding the Resolvers to the PostRoutingModule
- Exercise 30: Using Resolved Data in the PostListComponent
- Exercise 31: Using Resolved Data in the PostDetailComponent
- Activity 5: Creating a ProfileModule
- Activity 6: Creating Container Components
- Activity 7: Creating Service and Resolvers
- Activity 8: Creating Presentational Components
- Summary
- 2. Server-Side Rendering
- 3. Service Workers
-
Appendix A
-
1. Creating the Base Application
- Activity 1: Using a BootSwatch Theme
- Activity 2: Using Different Font Awesome Icons
- Activity 3: Moving the Header to a Separate Component
- Activity 4: Moving the Footer to a Separate Component
- Activity 5: Creating a ProfileModule
- Activity 6: Creating Container Components
- Activity 7: Creating Service and Resolvers
- Activity 8: Creating Presentational Components
- 2. Server-Side Rendering
- 3. Service Workers
-
1. Creating the Base Application
Product information
- Title: Server-Side Enterprise Development with Angular
- Author(s):
- Release date: November 2018
- Publisher(s): Packt Publishing
- ISBN: 9781789806267
You might also like
book
Beginning Server-Side Application Development with Angular
Discover how to rapidly prototype SEO-friendly web applications with Angular Universal About This Book Rapidly build …
book
Progressive Web Apps with Angular: Create Responsive, Fast and Reliable PWAs Using Angular
Harness the power of Angular to build fast, high performance progressive web apps that work offline. …
book
Why Angular for Enterprise Development
Enterprises looking to build robust, reliable, and performant applications are increasingly turning to Angular, a cross-platform …
book
Building Large-Scale Web Applications with Angular
A definitive guide on frontend development with Angular from design to deployment Key Features Develop web …