Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Angular for Enterprise-Ready Web Applications
Angular for Enterprise-Ready Web Applications

Angular for Enterprise-Ready Web Applications: Build and deliver production-grade and cloud-scale evergreen web apps with Angular 9 and beyond , Second Edition

Arrow left icon
Profile Icon Doguhan Uluca
Arrow right icon
Mex$1180.99 Mex$1312.99
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.8 (19 Ratings)
eBook May 2020 824 pages 2nd Edition
eBook
Mex$1180.99 Mex$1312.99
Paperback
Mex$1640.99
Subscription
Free Trial
Arrow left icon
Profile Icon Doguhan Uluca
Arrow right icon
Mex$1180.99 Mex$1312.99
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.8 (19 Ratings)
eBook May 2020 824 pages 2nd Edition
eBook
Mex$1180.99 Mex$1312.99
Paperback
Mex$1640.99
Subscription
Free Trial
eBook
Mex$1180.99 Mex$1312.99
Paperback
Mex$1640.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Angular for Enterprise-Ready Web Applications

Setting Up Your Development Environment

This chapter demonstrates how you and your team members can create a consistent development environment so that your entire team has the same great web development experience – the importance of which is highlighted in the preface of the book. It can be tough for beginners to create the right development environment, which is essential for a frustration-free development experience. For seasoned developers and teams, achieving a consistent and minimal development environment remains a challenge. Once achieved, such a development environment helps avoid many IT-related issues, including ongoing maintenance, licensing, and upgrade costs.

Instructions on installing GitHub Desktop, Node.js, the Angular CLI, and Docker are a useful reference for those from absolute beginners to seasoned teams, along with strategies for how to automate and ensure the correct and consistent configuration of your development environment.

Feel free to skip this chapter if you already have a robust development environment set up; however, beware that some of the environmental assumptions declared in this chapter may result in some instructions not working for you in later chapters. Come back to this chapter as a reference if you run into issues or need to help a colleague, pupil, or friend to set up their development environment. Automated installation scripts to set up your development environment can be found at https://github.com/duluca/web-dev-environment-setup.

To make the most of this book, you should be familiar with JavaScript ES2015+, frontend development basics, and RESTful APIs.

The recommended operating systems are Windows 10 Pro v1903+ with PowerShell v7+, or macOS Sierra v10.15+ with Terminal (Bash or Oh My Zsh). Most of the suggested software in this book also works on Linux systems, but your experience may vary depending on your particular setup.

It is standard practice for developers to use Google Chrome 80+ when developing web applications. However, you may also use the Chromium-based Microsoft Edge browser 80+. You should definitely install the cross-platform PowerShell on Windows from https://github.com/PowerShell/PowerShell/releases, which gives you access to chain operators && and ||. Additionally, get the new Windows Terminal from the Microsoft Store for a superior command-line experience on Windows.

In this chapter, you are going to learn how to do the following:

  • Work with the CLI package managers Chocolatey and Homebrew to install and update software
  • Use those package managers to install GitHub, Node.js, and other essential programs
  • Use scripting to automate installation using PowerShell or Bash
  • Generate an Angular application using the Angular CLI
  • Achieve a consistent and cross-platform development environment using automated tools

Let's start by learning about CLI-based package managers that you can use to install your development tools. In the next section, you'll see that using CLI tools is a superior method compared to dealing with individual installers. It is much easier to automate CLI tools, which makes setup and maintenance tasks repeatable and fast.

CLI package managers

Installing software through a Graphical User Interface (GUI) is slow and challenging to automate. As a full-stack developer, whether you're a Windows or a Mac user, you must rely on Command-Line Interface (CLI) package managers to efficiently install and configure the software you depend on.

Remember, anything that can be expressed as a CLI command can also be automated.

Installing Chocolatey for Windows

Chocolatey is a CLI-based package manager for Windows that can be used for automated software installation. To install Chocolatey on Windows, you need to run an elevated command shell:

  1. Launch the Start menu
  2. Start typing in PowerShell
  3. You should see Windows PowerShell Desktop App as a search result
  4. Right-click on Windows PowerShell and select Run as Administrator
  5. This triggers a User Account Control (UAC) warning; select Yes to continue
  6. Execute the install command found at https://chocolatey.org/install in PowerShell to install the Chocolatey package manager:
    PS> Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
    
  7. Verify your Chocolatey installation by executing choco
  8. You should see a similar output to the one shown in the following screenshot:

Figure 2.1: Successful installation of Chocolatey

All subsequent Chocolatey commands must also be executed from an elevated command shell. Alternatively, it is possible to install Chocolatey in a non-administrator setting that doesn't require an elevated command shell. However, this results in a non-standard and less secure development environment, and certain applications installed through the tool may still require elevation.

Scoop is an alternative to Chocolatey that provides a more Unix-like experience. If you prefer Unix-style tools and commands, you can install Scoop at https://scoop.sh/ or by executing:

$ iwr -useb get.scoop.sh | iex

For more information on Chocolatey, refer to https://chocolatey.org/install.

Installing Homebrew for macOS

Homebrew is a CLI-based package manager for macOS that can be used for automated software installation. To install Homebrew on macOS, you need to run a command shell:

  1. Launch Spotlight Search with + Space
  2. Type in terminal
  3. Execute the following command in Terminal to install the Homebrew package manager:
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
  4. Verify your Homebrew installation by executing brew
  5. You should see a similar output to the following:

Figure 2.2: Successful installation of Homebrew

  1. To enable access to additional software, execute the following command:
    $ brew tap caskroom/cask
    

On macOS, if you run into permissions issues while installing brew packages, related to chown'ing /usr/local, you need to execute the sudo chown -R $(whoami) $(brew --prefix)/* command. This command reinstates user-level ownership to brew packages, which is more secure than broad superuser/su-level access.

For more information, check out https://brew.sh/.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Updated examples, projects, and a new overview of tools – including NgRX and Ivy, automated testing, and Firebase authentication
  • New chapter summarizing history of web frameworks and Angular version updates
  • All-new RESTful API implementation leveraging the MEAN stack with MongoDB, Express.js, Angular and Node.js

Description

This second edition of Angular for Enterprise-Ready Web Applications is updated with in-depth coverage of the evergreen Angular platform. You’ll start by mastering Angular programming fundamentals. Using the Kanban method and GitHub tools, you’ll build great-looking apps with Angular Material and also leverage reactive programming patterns with RxJS, discover the flux pattern with NgRx, become familiar with automated testing, utilize continuous integration using CircleCI, and deploy your app to the cloud using Vercel Now and GCloud. You will then learn how to design and develop line-of-business apps using router-first architecture with observable data anchors, demonstrated through oft-used recipes like master/detail views, and data tables with pagination and forms. Next, you’ll discover robust authentication and authorization design demonstrated via integration with Firebase, API documentation using Swagger, and API implementation using the MEAN stack. Finally, you will learn about DevOps using Docker, build a highly available cloud infrastructure on AWS, capture user behavior with Google Analytics, and perform load testing. By the end of the book, you’ll be familiar with the entire gamut of modern web development and full-stack architecture, learning patterns and practices to be successful as an individual developer on the web or as a team in the enterprise.

Who is this book for?

This book is for developers who want to confidently deliver high-quality and production-grade Angular apps from design to deployment. Developers that have prior experience in writing a RESTful APIs will also benefit, as well as developers who will gain greater awareness of how they fit into the larger picture of delivering a web application. Prior experience with RESTful APIs is desired.

What you will learn

  • Adopt a minimalist, value-first approach to delivering web apps
  • Master Angular development fundamentals, RxJS, CLI tools, GitHub, and Docker
  • Discover the flux pattern and NgRx
  • Implement a RESTful APIs using Node.js, Express.js, and MongoDB
  • Create secure and efficient web apps for any cloud provider or your own servers
  • Deploy your app on highly available cloud infrastructure using DevOps, CircleCI, and AWS

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : May 29, 2020
Length: 824 pages
Edition : 2nd
Language : English
ISBN-13 : 9781838646608
Category :
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : May 29, 2020
Length: 824 pages
Edition : 2nd
Language : English
ISBN-13 : 9781838646608
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Mex$85 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Mex$85 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total Mex$ 3,589.97
Angular Projects
Mex$1025.99
Angular for Enterprise-Ready Web Applications
Mex$1640.99
Learning Angular
Mex$922.99
Total Mex$ 3,589.97 Stars icon

Table of Contents

16 Chapters
Introduction to Angular and Its Concepts Chevron down icon Chevron up icon
Setting Up Your Development Environment Chevron down icon Chevron up icon
Creating a Basic Angular App Chevron down icon Chevron up icon
Automated Testing, CI, and Release to Production Chevron down icon Chevron up icon
Delivering High-Quality UX with Material Chevron down icon Chevron up icon
Forms, Observables, and Subjects Chevron down icon Chevron up icon
Creating a Router-First Line-of-Business App Chevron down icon Chevron up icon
Designing Authentication and Authorization Chevron down icon Chevron up icon
DevOps Using Docker Chevron down icon Chevron up icon
RESTful APIs and Full-Stack Implementation Chevron down icon Chevron up icon
Recipes – Reusability, Routing, and Caching Chevron down icon Chevron up icon
Recipes – Master/Detail, Data Tables, and NgRx Chevron down icon Chevron up icon
Highly Available Cloud Infrastructure on AWS Chevron down icon Chevron up icon
Google Analytics and Advanced Cloud Ops Chevron down icon Chevron up icon
Another Book You May Enjoy Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.8
(19 Ratings)
5 star 57.9%
4 star 15.8%
3 star 0%
2 star 5.3%
1 star 21.1%
Filter icon Filter
Top Reviews

Filter reviews by




N/A Jul 19, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Feefo Verified review Feefo
Alex Hoffman Jul 01, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I received a copy of this book from a friend and have been very impressed with its usefulness so far. As a lead developer with 6 years of Angular expertise I have already found quite a few sections both interesting and useful like the part about how to use git submodules and the section on how to implement JWTs in an Angular application. If your are more experienced I wouldn't be afraid to jump around to the sections you need as I was able to do so with out reading everything up until those points. This is has already been a great resource to go back to when developing and Im looking forward to continuing to use it in the future.Additionally, I looked over a few of the intro sections and think that it does a really good job of introducing the basics of Angular. Ive already recommended it to a couple of my junior developers as it really good job covering skills that I think are important to helping junior developers thrive such as setting up proper visual studio code extensions, what unit testing is and how to do it, and how to approach and handle the sometimes tricky subject of observables.Overall I was very impressed with this book and think that it has something to offer for all skill levels.
Amazon Verified review Amazon
MikeDevDude Apr 09, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Excellent tour through best practices in Angular development. The built in patterns in Angular automatically inform and mirror best practices for server side. I find it refreshing to be able to follow a similar train of thought between server and front end. Great book for experienced developers looking to dive into Angular applications.
Amazon Verified review Amazon
Amazon Customer Apr 21, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I'm a recently retired Software Developer with 37 years experience. I've spent tens of thousands of dollars on texts. This book is written by a knowledgeable, experienced developer who's first language is probably English. I recently purchased several other books on this topic and they pale in comparison. I appreciate the effort the authors and editors put into this book. It is one I will keep on my "reference" shelf.
Amazon Verified review Amazon
Tom Eustace Feb 03, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
There is a lot of good content in this book which will appeal to beginners and more advanced users. The recommendations are always pragmatic and will serve people getting started with Angular well. The recommendation to keep dependencies and tooling simple is always refreshing as it will make upgrading and maintaining applications easier.Do your research first before adopting dependencies and tooling as things change quickly and there may be better alternatives at time of reading.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.