Building Web Apps with Spring 5 and Angular 4

A complete guide to build robust and scalable web applications with Spring 5 and Angular 4.
Preview in Mapt

Building Web Apps with Spring 5 and Angular 4

Ajitesh Shukla

2 customer reviews
A complete guide to build robust and scalable web applications with Spring 5 and Angular 4.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $39.99
Save 74%
Print + eBook
$49.99
RRP $49.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$49.99
$29.99 p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Building Web Apps with Spring 5 and Angular 4 Book Cover
Building Web Apps with Spring 5 and Angular 4
$ 39.99
$ 10.00
Building a Web Application with Spring and Angular [Video] Book Cover
Building a Web Application with Spring and Angular [Video]
$ 124.99
$ 10.00
Buy 2 for $20.00
Save $144.98
Add to Cart

Book Details

ISBN 139781787284661
Paperback370 pages

Book Description

Spring is the most popular application development framework being adopted by millions of developers around the world to create high performing, easily testable, reusable code. Its lightweight nature and extensibility helps you write robust and highly-scalable server-side web applications. Coupled with the power and efficiency of Angular, creating web applications has never been easier.

If you want build end-to-end modern web application using Spring and Angular, then this book is for you.

The book directly heads to show you how to create the backend with Spring, showing you how to configure the Spring MVC and handle Web requests. It will take you through the key aspects such as building REST API endpoints, using Hibernate, working with Junit 5 etc. Once you have secured and tested the backend, we will go ahead and start working on the front end with Angular. You will learn about fundamentals of Angular and Typescript and create an SPA using components, routing etc. Finally, you will see how to integrate both the applications with REST protocol and deploy the application using tools such as Jenkins and Docker.

Table of Contents

Chapter 1: Introduction to Spring Web Framework
Introduction to the Spring IOC container
Introduction to Spring Web MVC
Building Hello World web application with Spring Boot
Implementing Controllers
Handling request parameters
Handling Interceptors
Handling Response
Creating a RESTful web service
Dockerizing a Spring Boot application
Summary
Chapter 2: Preparing the Spring Web Development Environment
Installing the Java SDK
Installing/configuring Maven
Installing the Eclipse IDE
Installing/configuring the Apache Tomcat server
Installing/configuring the MySQL database
Introduction to Docker
Setting up the development environment using Docker compose
Summary
Chapter 3: Data Access Layer with Spring and Hibernate
An introduction to Hibernate
Setting up Hibernate with Spring
Design domain objects and database tables
Introduction to NamedQuery and Criteria
Common Hibernate operations
Transaction management
Summary
Chapter 4: Testing and Running Spring Web App
How to run the Spring Boot app 
Introduction to unit testing fundamentals
Introduction to JUnit 5
Mocking dependencies using Mockito
Unit testing controllers, services, and DAOs
Summary
Chapter 5: Securing Web App with Spring Security
Introduction to Spring Security
Handling the login authentication
CSRF protection for API requests
Handling the logout request
OAuth2 for authentication/authorization
Summary
Chapter 6: Getting Started with Angular
Introduction to Angular
How is Angular different from AngularJS?
Setting up the Angular development environment
TypeScript fundamentals
Forms
Pipes
Directives
Server communication
Bootstrapping an Angular app
Best practices
Summary
Chapter 7: Creating SPA with Angular and Spring 5
Introduction to routing
Configuring Route definitions
RouterLink for navigation
Route Guards for access control
Routing configuration design patterns
Creating a single page app (SPA) 
Debugging Angular app
Summary
Chapter 8: Unit Testing with Angular Apps
Introduction to unit testing
Unit testing tools for Angular apps
Setting up the unit test environment
Angular unit testing building blocks
Unit testing strategies
Unit testing the components
Unit testing the services
Summary
Chapter 9: Securing an Angular App
Common web application security vulnerabilities
Securing an app from XSS
Securing an app from XSSI
Securing app from CSRF/XSRF
Best practices
Summary
Chapter 10: Integrating Angular App with Spring Web APIs
Building RESTful Spring web APIs
Configure Spring app for CORS
Key aspects of Angular data services
Building Angular services for RESTful integration
Example of consuming RESTful Spring web APIs 
Summary
Chapter 11: Deploying the Web Application
Introduction to CI and CD
Setting up Jenkins and GitLab
Configuring GitLab as a code repository
Creating Jenkins jobs for CI
Configuring Jenkins and GitLab for CI/CD 
Configuring Jenkins jobs for CD
Deploying Angular app in production
Summary

What You Will Learn

  • Set up development environment for Spring Web App and Angular app.
  • Process web request and response and build REST API endpoints.
  • Create data access components using Spring Web MVC framework and Hibernate
  • Use Junit 5 to test your application
  • Learn the fundamental concepts around building Angular
  • Configure and use Routes and Components.
  • Protect Angular app content from common web vulnerabilities and attacks.
  • Integrate Angular apps with Spring Boot Web API endpoints
  • Deploy the web application based on CI and CD using Jenkins and Docker containers

Authors

Table of Contents

Chapter 1: Introduction to Spring Web Framework
Introduction to the Spring IOC container
Introduction to Spring Web MVC
Building Hello World web application with Spring Boot
Implementing Controllers
Handling request parameters
Handling Interceptors
Handling Response
Creating a RESTful web service
Dockerizing a Spring Boot application
Summary
Chapter 2: Preparing the Spring Web Development Environment
Installing the Java SDK
Installing/configuring Maven
Installing the Eclipse IDE
Installing/configuring the Apache Tomcat server
Installing/configuring the MySQL database
Introduction to Docker
Setting up the development environment using Docker compose
Summary
Chapter 3: Data Access Layer with Spring and Hibernate
An introduction to Hibernate
Setting up Hibernate with Spring
Design domain objects and database tables
Introduction to NamedQuery and Criteria
Common Hibernate operations
Transaction management
Summary
Chapter 4: Testing and Running Spring Web App
How to run the Spring Boot app 
Introduction to unit testing fundamentals
Introduction to JUnit 5
Mocking dependencies using Mockito
Unit testing controllers, services, and DAOs
Summary
Chapter 5: Securing Web App with Spring Security
Introduction to Spring Security
Handling the login authentication
CSRF protection for API requests
Handling the logout request
OAuth2 for authentication/authorization
Summary
Chapter 6: Getting Started with Angular
Introduction to Angular
How is Angular different from AngularJS?
Setting up the Angular development environment
TypeScript fundamentals
Forms
Pipes
Directives
Server communication
Bootstrapping an Angular app
Best practices
Summary
Chapter 7: Creating SPA with Angular and Spring 5
Introduction to routing
Configuring Route definitions
RouterLink for navigation
Route Guards for access control
Routing configuration design patterns
Creating a single page app (SPA) 
Debugging Angular app
Summary
Chapter 8: Unit Testing with Angular Apps
Introduction to unit testing
Unit testing tools for Angular apps
Setting up the unit test environment
Angular unit testing building blocks
Unit testing strategies
Unit testing the components
Unit testing the services
Summary
Chapter 9: Securing an Angular App
Common web application security vulnerabilities
Securing an app from XSS
Securing an app from XSSI
Securing app from CSRF/XSRF
Best practices
Summary
Chapter 10: Integrating Angular App with Spring Web APIs
Building RESTful Spring web APIs
Configure Spring app for CORS
Key aspects of Angular data services
Building Angular services for RESTful integration
Example of consuming RESTful Spring web APIs 
Summary
Chapter 11: Deploying the Web Application
Introduction to CI and CD
Setting up Jenkins and GitLab
Configuring GitLab as a code repository
Creating Jenkins jobs for CI
Configuring Jenkins and GitLab for CI/CD 
Configuring Jenkins jobs for CD
Deploying Angular app in production
Summary

Book Details

ISBN 139781787284661
Paperback370 pages
Read More
From 2 reviews

Read More Reviews

Recommended for You

Spring 5 Design Patterns Book Cover
Spring 5 Design Patterns
$ 35.99
$ 10.00
Architecting Modern Java EE Applications Book Cover
Architecting Modern Java EE Applications
$ 39.99
$ 10.00
Angular UI Development with PrimeNG Book Cover
Angular UI Development with PrimeNG
$ 35.99
$ 10.00
Building a Web Application with Spring and Angular [Video] Book Cover
Building a Web Application with Spring and Angular [Video]
$ 124.99
$ 10.00
Reactive Programming in Spring 5.0 Book Cover
Reactive Programming in Spring 5.0
$ 39.99
$ 10.00
Mastering Spring Cloud Book Cover
Mastering Spring Cloud
$ 35.99
$ 10.00