舉報

會員
Building Web Apps with Spring 5 and Angular
Ajitesh Shukla 著
更新時間:2021-07-02 19:38:58
開會員,本書免費讀 >
最新章節:
Summary
ThisbookistargetedtowardsJavaWebDeveloperswithabasicknowledgeofSpringwhowanttobuildcompletewebapplicationsinafastandeffectiveway.Theywillwanttogainastrongholdonbothfrontendandbackenddevelopmenttoadvanceintheircareers.
最新章節
- Summary
- Angular app deployed on Spring app server
- Angular app deployed on separate server
- Deploying Angular app in production
- Configuring Jenkins jobs for CD
- Configuring Jenkins for automated build triggers
品牌:中圖公司
上架時間:2021-07-02 18:23:53
出版社:Packt Publishing
本書數字版權由中圖公司提供,并由其授權上海閱文信息技術有限公司制作發行
- Summary 更新時間:2021-07-02 19:38:58
- Angular app deployed on Spring app server
- Angular app deployed on separate server
- Deploying Angular app in production
- Configuring Jenkins jobs for CD
- Configuring Jenkins for automated build triggers
- Configuring webhooks in GitLab
- Configuring Jenkins and GitLab for CI/CD
- Creating Jenkins jobs for CI
- Configuring GitLab as a code repository
- Setting up GitLab and Jenkins using Docker Compose
- Setting up GitLab
- Setting up Jenkins
- Setting up Jenkins and GitLab
- Introduction to CI and CD
- Deploying the Web Application
- Summary
- Custom Angular service for serving login functionality
- Custom Angular component for managing login view
- Spring RESTful API for user login
- Example of consuming RESTful Spring web APIs
- Invoking server APIs using the Angular HttpClient service
- Posting to RESTful Spring APIs using the HTTP service
- Consuming RESTful Spring APIs using the HTTP service
- Invoking server APIs using the Angular HTTP service
- Building Angular services for RESTful integration
- Observable for asynchronous data exchange
- Promise for asynchronous data exchange
- Promise and Observable responses
- Key aspects of Angular data services
- Configure Spring app for CORS
- Building RESTful Spring web APIs
- Integrating Angular App with Spring Web APIs
- Summary
- Best practices
- Securing app from CSRF/XSRF
- Securing an app from XSSI
- The Custom SecurityBypass pipe
- Displaying trusted HTML values
- Securing an app from XSS
- What is Cross-Site Request Forgery (CSRF/XSRF)?
- What is Cross-Site Script Inclusion (XSSI)?
- What is Cross-Site Scripting (XSS)?
- Common web application security vulnerabilities
- Securing an Angular App
- Summary
- Unit test for DoctorService
- Service under test - DoctorService
- Unit testing the services
- Unit test for a routed component
- Test doubles for Router and ActivatedRoute
- Unit testing a routed component
- Unit test for DoctorListComponent
- External service - DoctorService
- Component-under-test - DoctorListComponent
- Unit testing a component with an async service
- Unit testing a component with one or more dependencies
- Unit testing a component with an external template
- Unit testing the components
- Unit testing strategies
- Angular unit testing building blocks
- Setting up the unit test environment
- Angular testing utilities
- Protractor
- Karma
- Jasmine
- Unit testing tools for Angular apps
- Introduction to unit testing
- Unit Testing with Angular Apps
- Summary
- Debugging Angular app using Augury
- Debugging Angular app using Firefox and Chrome
- Debugging Angular app
- Route Guards for controlled access
- Doctor module
- Auth module
- Features as separate modules
- Lean root module
- Creating a single page app (SPA)
- Routing within feature modules
- Routing as a separate module at the app root level
- Routing within AppModule
- Routing configuration design patterns
- Route Guards for access control
- What is ActivatedRoute?
- What is RouterLink?
- RouterLink for navigation
- Configuring Route definitions
- Introduction to routing
- Creating SPA with Angular and Spring 5
- Summary
- Best practices
- Bootstrapping an Angular app
- Server communication
- Attribute directives
- Structural directives
- Directives
- Pipes
- Reactive forms
- Template-driven forms
- Forms
- TypeScript fundamentals
- Setting up the Angular development environment
- Angular - The Component Way of Building Web Apps
- AngularJS - The MVC way of building UI apps
- How is Angular different from AngularJS?
- Introduction to Angular
- Getting Started with Angular
- Summary
- Accessing resources using access token
- Acquiring access token
- OAuth2 Implementation for Angular App
- OAuth2 Implementation for Spring Web App
- Spring Security and OAuth2 authentication
- Introduction to OAuth2-based authentication & authorization
- OAuth2 for authentication/authorization
- Handling the logout request
- CSRF prevention technique for the Spring app
- CSRF prevention technique for the Angular app
- CSRF protection for API requests
- Handling the login authentication
- Setting up Spring Security
- Spring Security architecture - authorization
- Spring Security architecture - authentication
- Spring Security architecture - core building blocks
- Spring Security high level architecture
- Introduction to Spring Security
- Securing Web App with Spring Security
- Summary
- Unit tests for DAO components
- Unit tests for Services
- Unit tests for controllers
- Unit testing controllers services and DAOs
- Introduction to mocking techniques
- Getting set up with Mockito
- Mocking dependencies using Mockito
- Setting up and running JUnit tests
- Architectural building blocks of JUnit 5
- Introduction to JUnit 5
- Unit testing naming conventions
- Why write unit tests?
- What is unit testing?
- Introduction to unit testing fundamentals
- How to run the Spring Boot app
- Testing and Running Spring Web App
- Summary
- Declarative transaction management
- Transaction management
- The saveOrUpdate operation
- Update/merge operation
- Save/persist operation
- Data retrieval
- Common Hibernate operations
- What is Criteria?
- What is NamedQuery?
- Introduction to NamedQuery and Criteria
- User
- Design domain objects and database tables
- Autowire SessionFactory in DAOs
- Configure bean definitions
- Using annotations to wire a SessionFactory bean
- Setting up data source information in the application.properties file
- Setting up Hibernate with Spring
- An introduction to Hibernate
- Data Access Layer with Spring and Hibernate
- Summary
- Docker compose script to set up the development environment
- Setting up MySQL as a container service
- Setting up the Tomcat 8.x as a container service
- Docker Compose Script for setting up the Dev Environment
- What is Docker compose?
- Setting up the development environment using Docker compose
- Installing Docker
- What are the key building blocks of Dockers containers?
- Docker containers
- How do Docker containers relate to real-world containers?
- What are real-world containers good for?
- What are Docker containers?
- Introduction to Docker
- Connecting to the MySQL database from a Java class
- Using the MySQL connector
- Installing/configuring the MySQL server
- Installing/configuring the MySQL database
- Adding/configuring Apache Tomcat in Eclipse
- Installing/configuring the Apache Tomcat server
- Creating a new Maven project in Eclipse
- Import the existing Maven project in Eclipse
- Installing the Eclipse IDE
- Installing/configuring Maven
- Installing the Java SDK
- Preparing the Spring Web Development Environment
- Summary
- Dockerizing a Spring Boot application
- Creating a RESTful web service
- Using @ResponseBody annotation
- Response as an instance of ModelAndView
- Handling Response
- Handling Interceptors
- The PathVariable annotation
- The RequestBody annotation
- The RequestParam annotation
- Handling request parameters
- Implementing Controllers
- Building Hello World web app using Spring Boot
- Introduction to Spring Boot
- The Spring STS Setup in Eclipse IDE
- Building Hello World web application with Spring Boot
- Introduction to the Dispatcher servlet
- Key building blocks of a Spring Web MVC application
- Introduction to Spring Web MVC
- What is a Spring IOC container?
- What is IOC?
- Introduction to the Spring IOC container
- Introduction to Spring Web Framework
- Questions
- Piracy
- Errata
- Downloading the color images of this book
- Downloading the example code
- Customer support
- Reader feedback
- Conventions
- Who this book is for
- What you need for this book
- What this book covers
- Preface
- Customer Feedback
- Why subscribe?
- www.PacktPub.com
- About the Reviewer
- About the Author
- Credits
- Building Web Apps with Spring 5 and Angular
- Copyright
- Title Page
- cover
- cover
- Title Page
- Copyright
- Building Web Apps with Spring 5 and Angular
- Credits
- About the Author
- About the Reviewer
- www.PacktPub.com
- Why subscribe?
- Customer Feedback
- Preface
- What this book covers
- What you need for this book
- Who this book is for
- Conventions
- Reader feedback
- Customer support
- Downloading the example code
- Downloading the color images of this book
- Errata
- Piracy
- Questions
- Introduction to Spring Web Framework
- Introduction to the Spring IOC container
- What is IOC?
- What is a Spring IOC container?
- Introduction to Spring Web MVC
- Key building blocks of a Spring Web MVC application
- Introduction to the Dispatcher servlet
- Building Hello World web application with Spring Boot
- The Spring STS Setup in Eclipse IDE
- Introduction to Spring Boot
- Building Hello World web app using Spring Boot
- Implementing Controllers
- Handling request parameters
- The RequestParam annotation
- The RequestBody annotation
- The PathVariable annotation
- Handling Interceptors
- Handling Response
- Response as an instance of ModelAndView
- Using @ResponseBody annotation
- Creating a RESTful web service
- Dockerizing a Spring Boot application
- Summary
- Preparing the Spring Web Development Environment
- Installing the Java SDK
- Installing/configuring Maven
- Installing the Eclipse IDE
- Import the existing Maven project in Eclipse
- Creating a new Maven project in Eclipse
- Installing/configuring the Apache Tomcat server
- Adding/configuring Apache Tomcat in Eclipse
- Installing/configuring the MySQL database
- Installing/configuring the MySQL server
- Using the MySQL connector
- Connecting to the MySQL database from a Java class
- Introduction to Docker
- What are Docker containers?
- What are real-world containers good for?
- How do Docker containers relate to real-world containers?
- Docker containers
- What are the key building blocks of Dockers containers?
- Installing Docker
- Setting up the development environment using Docker compose
- What is Docker compose?
- Docker Compose Script for setting up the Dev Environment
- Setting up the Tomcat 8.x as a container service
- Setting up MySQL as a container service
- Docker compose script to set up the development environment
- Summary
- Data Access Layer with Spring and Hibernate
- An introduction to Hibernate
- Setting up Hibernate with Spring
- Setting up data source information in the application.properties file
- Using annotations to wire a SessionFactory bean
- Configure bean definitions
- Autowire SessionFactory in DAOs
- Design domain objects and database tables
- User
- Introduction to NamedQuery and Criteria
- What is NamedQuery?
- What is Criteria?
- Common Hibernate operations
- Data retrieval
- Save/persist operation
- Update/merge operation
- The saveOrUpdate operation
- Transaction management
- Declarative transaction management
- Summary
- Testing and Running Spring Web App
- How to run the Spring Boot app
- Introduction to unit testing fundamentals
- What is unit testing?
- Why write unit tests?
- Unit testing naming conventions
- Introduction to JUnit 5
- Architectural building blocks of JUnit 5
- Setting up and running JUnit tests
- Mocking dependencies using Mockito
- Getting set up with Mockito
- Introduction to mocking techniques
- Unit testing controllers services and DAOs
- Unit tests for controllers
- Unit tests for Services
- Unit tests for DAO components
- Summary
- Securing Web App with Spring Security
- Introduction to Spring Security
- Spring Security high level architecture
- Spring Security architecture - core building blocks
- Spring Security architecture - authentication
- Spring Security architecture - authorization
- Setting up Spring Security
- Handling the login authentication
- CSRF protection for API requests
- CSRF prevention technique for the Angular app
- CSRF prevention technique for the Spring app
- Handling the logout request
- OAuth2 for authentication/authorization
- Introduction to OAuth2-based authentication & authorization
- Spring Security and OAuth2 authentication
- OAuth2 Implementation for Spring Web App
- OAuth2 Implementation for Angular App
- Acquiring access token
- Accessing resources using access token
- Summary
- Getting Started with Angular
- Introduction to Angular
- How is Angular different from AngularJS?
- AngularJS - The MVC way of building UI apps
- Angular - The Component Way of Building Web Apps
- Setting up the Angular development environment
- TypeScript fundamentals
- Forms
- Template-driven forms
- Reactive forms
- Pipes
- Directives
- Structural directives
- Attribute directives
- Server communication
- Bootstrapping an Angular app
- Best practices
- Summary
- Creating SPA with Angular and Spring 5
- Introduction to routing
- Configuring Route definitions
- RouterLink for navigation
- What is RouterLink?
- What is ActivatedRoute?
- Route Guards for access control
- Routing configuration design patterns
- Routing within AppModule
- Routing as a separate module at the app root level
- Routing within feature modules
- Creating a single page app (SPA)
- Lean root module
- Features as separate modules
- Auth module
- Doctor module
- Route Guards for controlled access
- Debugging Angular app
- Debugging Angular app using Firefox and Chrome
- Debugging Angular app using Augury
- Summary
- Unit Testing with Angular Apps
- Introduction to unit testing
- Unit testing tools for Angular apps
- Jasmine
- Karma
- Protractor
- Angular testing utilities
- Setting up the unit test environment
- Angular unit testing building blocks
- Unit testing strategies
- Unit testing the components
- Unit testing a component with an external template
- Unit testing a component with one or more dependencies
- Unit testing a component with an async service
- Component-under-test - DoctorListComponent
- External service - DoctorService
- Unit test for DoctorListComponent
- Unit testing a routed component
- Test doubles for Router and ActivatedRoute
- Unit test for a routed component
- Unit testing the services
- Service under test - DoctorService
- Unit test for DoctorService
- Summary
- Securing an Angular App
- Common web application security vulnerabilities
- What is Cross-Site Scripting (XSS)?
- What is Cross-Site Script Inclusion (XSSI)?
- What is Cross-Site Request Forgery (CSRF/XSRF)?
- Securing an app from XSS
- Displaying trusted HTML values
- The Custom SecurityBypass pipe
- Securing an app from XSSI
- Securing app from CSRF/XSRF
- Best practices
- Summary
- Integrating Angular App with Spring Web APIs
- Building RESTful Spring web APIs
- Configure Spring app for CORS
- Key aspects of Angular data services
- Promise and Observable responses
- Promise for asynchronous data exchange
- Observable for asynchronous data exchange
- Building Angular services for RESTful integration
- Invoking server APIs using the Angular HTTP service
- Consuming RESTful Spring APIs using the HTTP service
- Posting to RESTful Spring APIs using the HTTP service
- Invoking server APIs using the Angular HttpClient service
- Example of consuming RESTful Spring web APIs
- Spring RESTful API for user login
- Custom Angular component for managing login view
- Custom Angular service for serving login functionality
- Summary
- Deploying the Web Application
- Introduction to CI and CD
- Setting up Jenkins and GitLab
- Setting up Jenkins
- Setting up GitLab
- Setting up GitLab and Jenkins using Docker Compose
- Configuring GitLab as a code repository
- Creating Jenkins jobs for CI
- Configuring Jenkins and GitLab for CI/CD
- Configuring webhooks in GitLab
- Configuring Jenkins for automated build triggers
- Configuring Jenkins jobs for CD
- Deploying Angular app in production
- Angular app deployed on separate server
- Angular app deployed on Spring app server
- Summary 更新時間:2021-07-02 19:38:58