Limit search to available items
Record 12 of 39
Previous Record Next Record
Book Cover
E-book
Author Shukla, Ajitesh

Title Building Web Apps with Spring 5 and Angular
Published Packt Publishing, 2017

Copies

Description 1 online resource
Contents Cover; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Customer Feedback; Table of Contents; Preface; Chapter 1: 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 parametersThe 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; Chapter 2: 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 EclipseInstalling/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 serviceSetting up MySQL as a container service; Docker compose script to set up the development environment; Summary; Chapter 3: 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 operationsData retrieval; Save/persist operation; Update/merge operation; The saveOrUpdate operation; Transaction management; Declarative transaction management; Summary; Chapter 4: 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
Summary A complete guide to build robust and scalable web applications with Spring and Angular. About This Book This hands on guide will teach you how to build an end-to-end modern web application using Spring and Angular. It is easy to read and will benefit Java developers who have been used to develop the back-end part of web application while front-end (UI) has been left for UI developers. Learn the core aspects involved in developing the backend and the UI, right from designing to integrating and deploying. Who This Book Is For This book is targeted towards Java Web Developers with a basic knowledge of Spring who want to build complete web applications in a fast and effective way. They will want to gain a stronghold on both frontend and backend development to advance in their careers. 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 In Detail 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 Jenkin ..
Notes Print version record
SUBJECT AngularJS (Software framework)
Spring framework (Software framework)
AngularJS (Software framework) fast
Subject Web applications -- Programming
Application software -- Development.
COMPUTERS -- General.
Application software -- Development
Form Electronic book
ISBN 1787281523
9781787281523