188 pages
English

Vous pourrez modifier la taille du texte de cet ouvrage

Découvre YouScribe en t'inscrivant gratuitement

Je m'inscris

Designing Applications with Spring Boot 2.2 and React JS , livre ebook

-

Découvre YouScribe en t'inscrivant gratuitement

Je m'inscris
Obtenez un accès à la bibliothèque pour le consulter en ligne
En savoir plus
188 pages
English

Vous pourrez modifier la taille du texte de cet ouvrage

Obtenez un accès à la bibliothèque pour le consulter en ligne
En savoir plus

Description

Let us full stack development with Spring Boot and React JS.Key features This book has a very specific goal to make developing REST applications easier and focusing on common challenges of the design of the application with best practices. This book is providing practical code examples from real-world experiences. This book is not only about Spring Boot 2.2 and React JS overview but also has an in-depth discussion about adopted REST Architectural pattern and its constraints to create the REST APIs. The book can act as a tool for learning Spring Boot 2.2 and React JS for the first time as well as a guide and reference for those wanting to dig deeper into specific features. This book is also providing deeper information about the Spring Security and JWT token-based authentication for your REST applications. This does not only provide information about to design an application using Spring Boot and React JS but also providing how to deploy your application to the cloud platform (PaaS). Containerization using Docker is another key feature of this book, how to create a Docker image and how to run it.DescriptionDesigning Application with Spring Boot 2 & React JS is divided into three parts. The first part introduces you to the essentials of the Spring Boot 2.2 Framework and you will learn how to create REST APIs and how to secure REST APIs. Part 2 steps behind the front end application development with React JS and discuss React features and its advantages toward the front end application development. Part 3 expands on that by showing how to deploy backend and frontend application the PaaS platform and also will discuss how to deploy application container technologies such as Docker.What will you learn Exploring Spring Boot 2.2 new features and essential key components such as Starters, Autoconfiguration, CLI, Actuator. Develop a REST application using Spring Boot 2.2 and DevTools. Exploring Spring Boot Auto Configuration and Customization. Creating application profiles based on the environments. Learn to configure backend data using JDBC and Spring Data JPA. Learn to configure a DataSource for H2 DB, and also for Maria DB. Learn best practices for designing a REST architecture based application. Creating a REST application using HATEOAS. Consuming REST APIs endpoints with RestTemplate, Traverson, and WebClient. Exploring JWT web token for the RESTful APIs and explores how to secure REST APIs using OAuth2 and Spring security. Creating TESTING module of the Spring Boot application and Unit & Integration testing. Discuss React JS and its components and also discuss React KS features and its advantages and disadvantage. Exploring how to create ReactJS components and how to manage ReactJS component lifecycle. Taking a quick overview of consuming the REST API using the React application. Deploying the application to the Cloud platform (PaaS). Containerization and Deploy using Docker containersWho this book is forDesigning Application with Spring Boot 2.2 & React JS is for all Java developers who want to learn Spring Boot 2.2 and React JS as in the enterprise application. Therefore, enterprise Java developers will find it particularly useful in the understanding of Spring Boot 2.2 and React JS and how to develop a backend RESTful application using the Spring Boot 2.2 and frontend application using React JS framework. They will most fully appreciate the examples presented in this book. Before reading this book, readers should have basic knowledge of core java, spring, servlet, filter, XML, and JavaScript. Table of contents1. Getting Started with Spring Boot 2.2 2. Customizing Auto-Configuration 3. Configuring Data and CRUD operations 4. Creating REST APIs with Spring Boot 2.2 5. Securing REST APIs 6. Testing Spring Boot Application 7. Getting Started with React8. Creating and Styling React Components9. Consuming the REST API with React JS10. Deploying and Containerizing ApplicationAbout the authorDinesh Rajput is a founder of https://www.dineshonjava.com , a blog for Spring and Java techies. He is a Spring enthusiast and a Pivotal Certified Spring Professional. He has written many software design & development books, some of the bestselling books on Amazon. Dinesh's title Spring 5 Design Patterns and Mastering Spring Boot 2.0 are the Amazon #1 best-selling books on Java. He has more than 10 years of experience with various aspects of Spring and cloud-native development, such as REST APIs and microservice architecture.He is currently working as an architect at a leading company. He has worked as a tech lead at Bennett, Coleman & Co. Ltd, and Paytm.He has a master's degree in computer engineering from JSS Academy of Technical Education, Noida, and lives in Noida with his family. His Website: https://www.dineshonjava.comHis Blog: https://www.dineshonjava.com & https://www.dineshrajput.comHis LinkedIn Profile: https://www.linkedin.com/in/rajputdinesh/

Sujets

Informations

Publié par
Date de parution 20 septembre 2019
Nombre de lectures 2
EAN13 9789389328059
Langue English
Poids de l'ouvrage 2 Mo

Informations légales : prix de location à la page 0,0600€. Cette information est donnée uniquement à titre indicatif conformément à la législation en vigueur.

Extrait

Designing Applications with Spring Boot 2.2 and React JS
Step-by-step guide to design and develop intuitive full stack web applications
by Dinesh Rajput
FIRST EDITION 2019
Copyright © BPB Publications, India
ISBN: 978-93-88511-643
All Rights Reserved. No part of this publication may be reproduced or distributed in any form or by any means or stored in a database or retrieval system, without the prior written permission of the publisher with the exception to the program listings which may be entered, stored and executed in a computer system, but they can not be reproduced by the means of publication.
LIMITS OF LIABILITY AND DISCLAIMER OF WARRANTY
The information contained in this book is true to correct and the best of author’s & publisher’s knowledge. The author has made every effort to ensure the accuracy of these publications, but cannot be held responsible for any loss or damage arising from any information in this book.
All trademarks referred to in the book are acknowledged as properties of their respective owners.
 
 
Distributors:
BPB PUBLICATIONS 20, Ansari Road, Darya Ganj New Delhi-110002 Ph: 23254990/23254991
MICRO MEDIA Shop No. 5, Mahendra Chambers, 150 DN Rd. Next to Capital Cinema, V.T. (C.S.T.) Station, MUMBAI-400 001 Ph: 22078296/22078297
DECCAN AGENCIES 4-3-329, Bank Street, Hyderabad-500195 Ph: 24756967/24756400
BPB BOOK CENTRE 376 Old Lajpat Rai Market, Delhi-110006 Ph: 23861747
 
 
Published by Manish Jain for BPB Publications, 20 Ansari Road, Darya Ganj, New Delhi-110002 and Printed by him at Repro India Ltd, Mumbai
Dedication
To my country, India.
My grandpas, the late Mr. Arjun Singh and the late Mr. Durjan Lal Rajput. To all readers of DineshOnJava and my books.
To my mother, Indira Devi, and my father, Shrikrashan, for their sacrifices and for exemplifying the power of determination.
To my kids, Arnav and Rushika, and my wife, Anamika, for being my loving partner throughout my life journey.
About the Author
Dinesh Rajput is the founder of https://www.dineshonjava.com , a blog for Spring and Java techies. He is a Spring enthusiast and a Pivotal Certified Spring Professional. He has written several bestselling IT books Like Spring 5 Design Patterns and Mastering Spring Boot 2.0. Mastering Spring Boot 2.0 is the Amazon #1 best-selling book on Java . He has more than 10 years of experience on various aspects of Spring and cloud-native development, such as REST APIs and Microservice Architecture.
He is currently working as an architect at a leading company. He has worked as a tech lead at Bennett, Coleman & Co. Ltd, and Paytm.
He holds a Master’s degree in Computer Engineering from JSS Academy of Technical Education, Noida, and lives in Noida with his family.
His Website: https://www.dineshonjava.com His Blog: https://www.dineshonjava.com & https://www.dineshrajput.com His Linked in Profile: https://www.linkedin.com/in/rajputdinesh/
Acknowledgements
I would like to start my acknowledgement with the following quote:
“There is nothing unachievable in the world if you have one thing ‘let us try’ .”
I would like to start by thanking Mr. Manish Jain for giving me an opportunity to write this book. I would like to express my gratitude to the BPB Publications team. It started with Vinay and Anugraha, my acquisition editors, who patiently worked with me. Along the way, my development editor challenged me to become a better author. I would like to thank Subha Nadar, my technical editor, who gavea technical shape to the book and constantly checked my work and ensured the overall quality of the examples and the code I produced.
I would like to thank my family for their love and support. To my wife Anamika, you have been my best friend and the love of my life. I would also like to thank my kids, Arnav and Rushika. You both make me a better father as well as a better author and more importantly, a better person.
Finally, I would like to thank the Dinesh on java readers who bought this book early and shared their valuable feedback. I hope that you enjoy this book as much as I enjoyed writing it. Thank you!
Preface
Designing Applications with Spring Boot 2.2 and React JS is for all Java developers who want to learn Spring Boot and React JS in the enterprise full stack applications. Therefore, enterprise Java and Spring developers will find this book useful in understanding REST architectural design patterns using Spring Boot 2.2,how React JS helps in the development of front-end applications, how to create reusable UI components, and they will appreciate the examples presented in this book. Using Spring Boot, you can solve common design problems of the REST ful applications. Before reading this book, readers should have basic knowledge of Core Java, Spring Core Framework, REST basics, and JavaScript.
Spring Boot 2.2 has been newly launched by Pivotal with the reactive programming and cloud. Spring Boot 2.2 introduces many new features and enhancements from its previous version. We will discuss Spring Boot and its essential key components in this book. Designing Applications with Spring Boot 2.2 and React JS is a full stack development book that will give you in-depth insight into Spring Boot for backend application development and React JS for front-end application development.
The great part of today’s Spring Boot is that many companies have already adopted it as a primary framework for the development of backend applications, especially for the REST APIs using the microservices architecture. For Spring Boot, no external enterprise servers are needed to start working with them. React JS is also a very popular JS framework used for the development of front-end applications.
The goal of writing this book is to discuss a full stack application using Spring Boot and React JS and the common designs used behind the REST ful applications. Here, the author has also outlined some best practices to understand the React JS components life cycle.
The book contains 10 chapters, which cover everything from the development of a full stack application to the deployment of the front-end and backend applications by either using virtual machines or containers such as Docker.
Designing Application with Spring Boot 2.2 and React JSis divided into three parts. The first part introduces you to the essentials of the Spring Boot 2.2 framework and you will learn how to create and secure REST APIs. The second part explains the steps for the development of front-end applications in React JS and discusses React features and its advantages. The third part expands on that by showing how to deploy the backend and front-end applications in the PaaS platform and finally, the fourth part explains how to deploy application container technologies such as Docker.
What you need for this book
This book can be read without a computer or laptop at hand, in which case you need nothing more than the book itself. However, to follow the examples in the book, you need Java 8, which you can download from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html , and you will also need your favorite IDE.I have used the Software Spring Tool Suite; download the latest version of Spring Tool Suite (STS) from https://spring.io/tools/sts/ all according to your OS. Java 8 and STS work on a variety of platforms: Windows, MacOS and Linux.
Downloading the code bundle and colored images:
Please follow the link to download the Code Bundle and the Colored Images of the book:
https://rebrand.ly/b3bf0
Errata
We take immense pride in our work at BPB Publications and follow best practices to ensure the accuracy of our content to provide with an indulging reading experience to our subscribers. Our readers are our mirrors, and we use their inputs to reflect and improve upon human errors if any, occurred during the publishing processes involved. To let us maintain the quality and help us reach out to any readers who might be having difficulties due to any unforeseen errors, please write to us at :
errata@bpbonline.com
Your support, suggestions and feedbacks are highly appreciated by the BPB Publications’ Family.
Table of Contents
1. Getting Started with Spring Boot 2.2
Introduction to Spring Boot 2.2
Essential key components of Spring Boot
Spring Boot Starters
The Spring Boot auto-configuration
The Spring Boot CLI
Spring Boot Actuator
System requirements and setting up a workspace
Setting up the Spring Boot workspace
Using the Maven installation for Spring Boot
Using the Gradle installation
Creating a Spring Boot application
Initializing a Spring project with a web interface
Initializing a Spring project with the STS IDE
The Spring Boot application launcher file
Testing the application file
The build specification file
Implementing a REST controller
Writing a test for the controller
Introducing Spring Boot DevTools
Conclusion
Questions
2. Customizing Auto-configuration
Understanding auto-configuration
Enabling Spring Boot auto-configuration
Disabling the Spring Boot auto-configuration
How the Spring Boot auto-configuration works?
Auto-configuration classes
Order of evaluation for overridden properties
Customizing the name of the application properties file
Application configuration using a properties file
Application configuration using a YAML file
Configuring an embedded server
Configuring a data source
Configuring Logging
Multi-profile YAML documents
Creating your own configuration properties
Defining your own configuration properties in the application
Declaring the configuration property and metadata
Profiling
Activating profiles
Profile-specific application configuration properties files
Conclusion
Questions
3. Configuring Data and CRUD operations
Using JDBC with the Spring application
Adding a domain class
Working with JdbcTemplate
Creating table schema and loading data
Configu

  • Univers Univers
  • Ebooks Ebooks
  • Livres audio Livres audio
  • Presse Presse
  • Podcasts Podcasts
  • BD BD
  • Documents Documents
Alternate Text