Full Stack AngularJS for Java Developers Build a Full-Featured Web Application from Scratch Using AngularJS with Spring RESTful 1st Edition by Ravi Kant Soni – Ebook PDF Instant Download/Delivery. 1484231988, 9781484231982
Full download Full Stack AngularJS for Java Developers Build a Full-Featured Web Application from Scratch Using AngularJS with Spring RESTful 1st Edition after payment
Product details:
ISBN 10: 1484231988
ISBN 13: 9781484231982
Author: Ravi Kant Soni
Get introduced to full stack enterprise development. Whether you are new to AngularJS and Spring RESTful web services, or you are a seasoned expert, you will be able to build a full-featured web application from scratch using AngularJS and Spring RESTful web services. Full stack web development is in demand because you can explore the best of different tools and frameworks and yet make your apps solid and reliable in design, scalability, robustness, and security. This book assists you in creating your own full stack development environment that includes the powerful and revamped AngularJS, and Spring REST. The architecture of modern applications is covered to prevent the development of isolated desktop and mobile applications. By the time you reach the end of this book you will have built a full-featured dynamic app. You will start your journey by setting up a Spring Boot development environment and creating your RESTful services to perform CRUD operations. Then you will migrate the front-end tools—AngularJS and Bootstrap—into your Spring Boot application to consume RESTful services. You will secure your REST API using Spring Security and consume your secured REST API using AngularJS. What You’ll Learn Build a REST application with Spring Boot Expose CRUD operations using RESTful endpoints Create a single page application by integrating Angular JS and Bootstrap in Spring Boot Secure REST APIs using Spring Security Consume secured RESTful Services using Angular JS Build a REST client using a REST template to consume RESTful services Test RESTful services using the Spring MVC Test Framework Who This Book Is For Web application developers with previous Java programming experience who want to create enterprise-grade, scalable Java apps using powerful front tools such as AngularJS and Bootstrap along with popular back-end frameworks such as Spring Boot.
Full Stack AngularJS for Java Developers Build a Full-Featured Web Application from Scratch Using AngularJS with Spring RESTful 1st Table of contents:
Chapter 1: The Big Picture of Full Stack Web Development
What Is a Full Stack Developer?
Full Stack Web Development
Architecture of Modern Web Applications
Front End vs. Back End
Front-End Framework
AngularJS as a Front-End Framework
AngularJS Version
AngularJS Architecture Concepts
MVC Architecture
Twitter Bootstrap
Back-End Framework
Spring Boot as a Back-End Framework
Spring Framework Problems and Spring Boot Advantages
Primary Goals of Spring Boot
Develop Your First Spring Boot Application
System Requirements
Using the Spring Boot CLI
Using Spring Initializr
Using Spring Tool Suite
A Walk-Through of the Code
Looking at pom.xml
Writing the Code
@SpringBootApplication Annotation
@RestController and @RequestMapping Annotations
The main Method
Running a Spring Boot Application in STS
Starters
Spring Boot Actuator: Production-Ready Features
Enabling Actuator
Running the Application
Using Actuator Endpoints
Customizing the Management Server Port
Getting Health Information
Summary
Chapter 2: Creating the RESTful Layer for Your Application
Introduction to REST
HTTP Methods and CRUD Operations
HTTP Status Codes
Build a RESTful Service: UserRegistrationSystem
Introducing UserRegistrationSystem
Identifying REST Endpoints
JSON Format
Creating the UserRegistrationSystem Application
Embedded Database: H2
Domain Implementation: Users
Repository Implementation: UserJpaRepository
Build a RESTful API
Create a RESTful Controller: UserRegistrationRestController
@GetMapping: Retrieve All Users
@PostMapping: Create a New User
@GetMapping (“/ {id}”): Retrieve an Individual User
@PutMapping: Update a User
@DeleteMapping: Delete a User
Handle Errors in a RESTful API
UserRegistrationSystem Error Handling
Custom Error Response
Validating Request Body
Adding the Bean Validation Annotations
@Valid on @RequestBody in UserRegistrationRestController Method Arguments
ValidationError and Updated ErrorDetail Classes
Handling Exceptions Using the @ControllerAdvice Annotation
Externalizing Error Messages
Create ReloadableResourceBundleMessageSource Bean: messageSource
Create a Properties File
Bean Validation Annotation with the message Attribute
Reading Messages from the Properties File
Summary
Chapter 3: Setting Up AngularJS: Creating Your Single-Page Application
Introducing AngularJS as a Front-End Framework
AngularJS Basic Components
AngularJS Life Cycle
Bootstrap Phase
Compilation Phase
Runtime Data Binding Phase
AngularJS Architecture Concepts
MVC Architecture
Setting Up Your Development Environment
Adding AngularJS to Spring Boot
Including Angular Scripts from the Google CDN
Downloading and Hosting Angular Files Locally
Providing Dependency Information in pom.xml
Adding Twitter Bootstrap to Spring Boot
Developing Your Single-Page Application
Bootstrapping the Application
Dependency Injection
AngularJS Routes
AngularJS Templates
Implementing the Model, View, and Controller in Your Single-Page Application
Create the Home/Application Page
Create the View Pages
Home Page
Register New User Page
List of Users
Update Existing User
Create an AngularJS Application
Create an AngularJS Controller
Running a Spring Boot Application in STS
Summary
Chapter 4: Securing Your RESTful API Using Spring Security
Introducing Spring Security
Authentication and Authorization
Introducing Basic Authentication
BasicAuthenticationFilter
Enabling Spring Security on RESTful Services
What Is the Spring Boot Security Starter?
Updating the pom.xml File with the Spring Security Dependency
Overriding the Spring Security Defaults
Customizing User Authentication
Authentication Customization with an In-Memory Definition
Running the UserRegistrationSystem Application
Authentication Customization Against a Relational Database
UserDetailsService Implementation
Customizing Spring Security and Securing the URI
Method-Level Security
Summary
Chapter 5: Consuming Secured RESTful Services Using AngularJS
Enabling Basic Authentication in Spring Security
Sending an Authorization Header with Each Request in AngularJS
Adding the HTTP Interceptor in AngularJS
authInterceptor.js
Updating app.js
Updating index.html
Running the Application
HTTP Request with Basic Authentication Header: Verify in Developer Tools
The Login Page
Updating index.html: Adding Navigation to the Welcome Page
Updating app.js: Adding Navigation to the Angular Application
Creating login.html: The Login Form
Updating controller.js for the Login and Logout Authentication Process
Updating the Back-End Code
Creating a New RESTful Endpoint to Get the Currently Authenticated User
Updating the Spring Security Configuration to Handle Login Requests
Running the Application
Summary
Chapter 6: Building a RESTful Client and Testing RESTful Services
Building a REST Client Using RestTemplate
RestTemplate
RestTemplate Method
RestTemplate Operation
HTTP GET Request with Parameter to Retrieve User
HTTP POST Request with JSON Data to Create an User
HTTP PUT Request with Parameter to Update User
HTTP DELETE with Parameter to Delete User
The RestTemplate Exchange API
Basic Authentication with RestTemplate
Testing RESTful Services Using the Spring Test Framework
What Is Testing?
Testing Using JUnit4
JUnit 4 Annotations
JUnit 4 Assert Methods
Example: Implementing JUnit 4
Agile Software Testing
Unit Testing
Unit Testing for the Dependent Class with a Mocking Object
The Mockito Framework
Integration Testing
Testing the Spring Boot Application
Maven Dependency
Annotations in Spring Testing
Unit Testing REST Controller
Testing the Web Layer Using the Spring MVC Test Framework
MockMvc
Summary
Chapter 7: Application Monitoring Using Spring Boot Actuator
Introducing Spring Boot Actuator
Enabling the Actuator Module
Actuator Endpoints
/info
/env
/metrics
/trace
/health
Customizing an Actuator Endpoint
Properties to Customize
Custom Health Indicator
Defining New Endpoints
Management Over HTTP
Customizing the Server Port
Accessing a Sensitive Endpoint
Summary
Appendix A: Tools for Accessing REST APIs
API Testing
API Testing Tools
Postman
Functions in Postman
Request URL
HTTP Method
Parameters
Authorization
Headers
Body
Send
Response Message
People also search for Full Stack AngularJS for Java Developers Build a Full-Featured Web Application from Scratch Using AngularJS with Spring RESTful 1st:
full stack angularjs for java developers
what does a java full stack developer do
what is java full stack developer
what is the role of full stack java developer
difference between full stack developer and java full stack developer