Collections /

Build Java Full-stack Spring Boot and React app

Last updated Jul 24, 2021

In this collection, we'll create a full-stack java project from scratch using Spring boot for backend stuff and react for frontend.

Project Architecture

There are many tutorials dealing with topics such as spring boot, react.js, react native, etc. So it's usually a challenge to make a tutorial about these themes. Fortunately, most of these tutorials are chunks of code, which can be a trap for beginners when it comes to joining them. So in this series, we are going to learn how to join pieces of code to make a really beautiful project. We think this will help someone on their developer journey!

Set up backend REST API

In this tutorial, we'll set up the backend. What you'll learn here are:

How to initialize a Spring boot app using the official Spring boot initializer and
How to customize a spring boot app port.

Set up Spring Data REST

We will learn how to :

Create entity
Create a repository and expose it as REST endpoints without using any other controller component
Create queries
Custom query URL
Custom REST API base path

Securing the REST API with Spring Security & JWT (a)

What we'll cover here :
How to customize Spring security to fetch users from the database
How to implement JWT token management in Spring boot REST API
How to expose a REST POST API /login to generate a JWT token

Like this collection? Save it to read later.