Full Stack Development with Spring Boot and React
eBook - ePub

Full Stack Development with Spring Boot and React

Build modern and scalable full stack applications using the power of Spring Boot and React, 3rd Edition

  1. 378 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Full Stack Development with Spring Boot and React

Build modern and scalable full stack applications using the power of Spring Boot and React, 3rd Edition

About this book

PUBLISHER'S NOTE: A new edition of this book is now available, revised and updated for Spring Boot 3 and TypeScript.

Key Features

  • Utilize Spring Boot to make powerful, complex, and secure backends for your applications
  • Leverage React's full arsenal of tools for building slick, high-performance frontends
  • Build modern, scalable full stack applications that comfortably meet the demands of your users

Book Description

Getting started with full stack development can be daunting. Even developers who are familiar with the best tools, such as Spring Boot and React, can struggle to nail the basics, let alone master the more advanced elements. If you're one of these developers, this comprehensive guide covers everything you need!This updated edition of the Full Stack Development with Spring Boot 2 and React book will take you from novice to proficient in this expansive domain. Taking a practical approach, this book will first walk you through the latest Spring Boot features for creating a robust backend, covering everything from setting up the environment and dependency injection to security and testing.Once this has been covered, you'll advance to React frontend programming. If you've ever wondered about custom Hooks, third-party components, and MUI, this book will demystify all that and much more. You'll explore everything that goes into developing, testing, securing, and deploying your applications using all the latest tools from Spring Boot, React, and other cutting-edge technologies.By the end of this book, you'll not only have learned the theory of building modern full stack applications but also have developed valuable skills that add value in any setting.

What you will learn

  • Make fast and RESTful web services powered by Spring Data REST
  • Create and manage databases using ORM, JPA, Hibernate, and more
  • Explore the use of unit tests and JWTs with Spring Security
  • Employ React Hooks, props, states, and more to create your frontend
  • Discover a wide array of advanced React and third-party components
  • Build high-performance applications complete with CRUD functionality
  • Harness MUI to customize your frontend
  • Test, secure, and deploy your applications with high efficiency

Who this book is for

This book is for Java developers who are familiar with Spring Boot but don't know where to start when it comes to building full stack applications. You'll also find this book useful if you're a frontend developer with knowledge of JavaScript basics looking to learn full stack development or a full stack developer experienced in other technology stacks looking to learn a new one.

]]>

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere β€” even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Full Stack Development with Spring Boot and React by Juha Hinkula in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in JavaScript. We have over one million books available in our catalogue for you to explore.

Part 1: Backend Programming with Spring Boot

Here, you will be familiarized with the basics of Spring Boot. This part provides the knowledge required to use databases and create RESTful web services.
We will cover the following chapters in this section:
  • Chapter 1, Setting Up the Environment and Tools – Backend
  • Chapter 2, Understanding Dependency Injection
  • Chapter 3, Using JPA to Create and Access a Database
  • Chapter 4, Creating a RESTful Web Service with Spring Boot
  • Chapter 5, Securing and Testing Your Backend

Chapter 1: Setting Up the Environment and Tools – Backend

In this book, we will learn about full stack development using Spring Boot in the backend and React in the frontend. The first half of this book focuses on backend development, and in the second half of the book, we will implement the frontend.
In this chapter, we will set up the environment and tools needed for backend programming with Spring Boot. Spring Boot is a modern Java-based backend framework that makes development faster than with traditional Java-based frameworks. With Spring Boot, you can make a standalone web application that has an embedded application server.
There are a lot of different integrated development environment (IDE) tools that you can use to develop Spring Boot applications. In this chapter, we will install Eclipse, which is an open source IDE for multiple programming languages. We will create our first Spring Boot project by using the Spring Initializr project starter page. The project is then imported into Eclipse and executed. Reading the console log is a crucial skill when developing Spring Boot applications, which we will also cover.
In this chapter, we will look into the following topics:
  • Installing Eclipse
  • Understanding Maven
  • Using Spring Initializr
  • Installing MariaDB

Technical requirements

The Java software development kit (SDK), version 8 or higher, is necessary to use the Eclipse IDE. In this book, we are using the Windows operating system, but all tools are available for Linux and macOS as well.
Download the code for this chapter from GitHub, at https://github.com/PacktPublishing/Full-Stack-Development-with-Spring-Boot-and-React/tree/main/Chapter01.
Check out the following video to see the Code in Action: https://bit.ly/3qMV44E

Installing Eclipse

Eclipse is an open source programming IDE developed by the Eclipse Foundation. An installation package or installer can be downloaded from https://www.eclipse.org/downloads. Eclipse is available for Windows, Linux, and macOS.
You can either download a ZIP package of Eclipse or an installer package that executes the installation wizard. In the installer, you should select Eclipse IDE for Enterprise Java and Web Developers, as shown in the following screenshot:
Figure 1.1 – Eclipse installer
Figure 1.1 – Eclipse installer
If using the ZIP package, you just have to extract the package to your local disk, and it will contain an executable eclipse.exe file that you can run by double-clicking on the file. You should download the Eclipse IDE for Enterprise Java and Web Developers package.
Eclipse is an IDE for multiple programming languages, such as Java, C++, and Python. Eclipse contains different perspectives for your needs, which are a set of views and editors in the Eclipse workbench. The following screenshot shows common perspectives for Java development:
Figure 1.2 – Eclipse workbench
Figure 1.2 – Eclipse workbench
On the left-hand side, we have Project Explorer, where we can see our project structure and resources. Project Explorer is also used to open files by double-clicking on them. The files will be opened in the editor, which is located in the middle of the workbench. The Console view can be found in the lower section of the workbench. This view is really important because it shows application logging messages.
Important Note
You can get Spring Tool Sui...

Table of contents

  1. Full Stack Development with Spring Boot and React
  2. Third Edition
  3. Preface
  4. Part 1: Backend Programming with Spring Boot
  5. Chapter 1: Setting Up the Environment and Tools – Backend
  6. Chapter 2: Understanding Dependency Injection
  7. Chapter 3: Using JPA to Create and Access a Database
  8. Chapter 4: Creating a RESTful Web Service with Spring Boot
  9. Chapter 5: Securing and Testing Your Backend
  10. Part 2: Frontend Programming with React
  11. Chapter 6: Setting Up the Environment and Tools – Frontend
  12. Chapter 7: Getting Started with React
  13. Chapter 8: Consuming the REST API with React
  14. Chapter 9: Useful Third-Party Components for React
  15. Part 3: Full Stack Development
  16. Chapter 10: Setting up the Frontend for Our Spring Boot RESTful Web Service
  17. Chapter 11: Adding CRUD Functionalities
  18. Chapter 12: Styling the Frontend with React MUI
  19. Chapter 13: Testing Your Frontend
  20. Chapter 14: Securing Your Application
  21. Chapter 15: Deploying Your Application
  22. Chapter 16: Best Practices
  23. Assessments
  24. Other Books You May Enjoy