Book Image

Building Web Apps with Spring 5 and Angular

By : Ajitesh Kumar Shukla
Book Image

Building Web Apps with Spring 5 and Angular

By: Ajitesh Kumar Shukla

Overview of this book

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 (18 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Installing/configuring Maven


Maven is a tool which can be used for building and managing Java-based projects. The following are some of the key benefits of using Maven as a build tool:

  • It provides a simple project setup that follows best practices--it gets a new project or module started in seconds.
  • It allows a project to build using its Project Object Model (POM) and a set of plugins that are shared by all projects, providing a uniform build system. POM is defined in an XML file, namely, pom.xml, which defines the project configuration and dependencies along with their versions. One can manage the dependencies version from pom.xml.
  • Based on the project templates (also called archtype), Maven supports scaffolding, based on which the standard folder structure is created along with the base controller files, unit tests, and so on.
  • It allows usage of the large and growing repository of libraries and metadata to use out of the box. The project dependencies are installed in the local repository...