Full Stack Java with React, Spring Boot, and JHipster
Published: 2021-11-08 19:06:09

#### This tutorial shows you how to create a slick-looking, full-stack, secure application using React, Spring Boot, and JHipster. 

### <br>

If you search for "Full Stack Java" on the internet, you'll likely find a lot of recruiting, courses, and jobs. Being a full-stack developer can be exciting because you can create the backend and frontend of an app all by yourself. There is business logic and algorithms as well as like styling, making things look good, and securing everything. It also pays pretty well. Today, I'm going to show you how you can be a full-stack Java developer with Spring Boot, React, and JHipster.

**Prerequisites:**

- [Node.js 14+](https://nodejs.org/)
- [Java 11+](https://sdkman.io)
- [Docker Compose](https://docs.docker.com/compose/install/)

If you're on Windows, you may need to install the [Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/about) for some commands to work.

I recommend using SDKMAN to manage your OpenJDK installations. Just run `sdk install java 11.0.2-open` to install Java 11 and `sdk install java 17-open` for Java 17.

This tutorial won't provide the nitty-gritty details on how to write code in Java, React, or Spring Boot. That's because JHipster will write most of the code for you! However, if you're brand new to programming with these technologies, I recommend the following resources:

* [Oracle's Learn Java Tutorials](https://dev.java/learn/)
* [Spring Guides](https://spring.io/guides)
* [Tutorial: Intro to React](https://reactjs.org/tutorial/tutorial.html)

You can skip around between sections of this tutorial using the table of contents below. 

You can also clone [the completed example](https://github.com/oktadev/auth0-full-stack-java-example) and follow along that way.

```
git clone https://github.com/oktadev/auth0-full-stack-java-example
```

## Full Stack Development with React and Spring Boot

One of the easiest ways to get started with React is by using [Create React App](https://create-react-app.dev/) (CRA). You install it locally, then run `create-react-app <project>` to generate a React application with minimal dependencies. It uses webpack under-the-covers to build the project, launch a web server, and run its tests.

Spring Boot has a similar tool called [Spring Initializr](https://start.spring.io/). Spring Initializer is a bit different than CRA because it's a website (and API) that you can create applications with.

Today, I'll show you how to build a Flickr clone with React and Spring Boot. However, I'm going to cheat. Rather than building everything using the aforementioned tools, I'm going to use JHipster. JHipster is an application generator that initially only supported Angular and Spring Boot. Now it supports Angular, React, and Vue for the frontend. JHipster also has support for [Kotlin, Micronaut, Quarkus, .NET, and Node.js](https://www.jhipster.tech/modules/official-blueprints/) on the backend.

In this tutorial, we'll use React since it seems to be [the most popular](https://trends.google.com/trends/explore?q=angular,react,vuejs) frontend framework nowadays. 

[Read more...](https://auth0.com/blog/full-stack-java-with-react-spring-boot-and-jhipster/?utm_source=content_synd&utm_medium=sc&utm_campaign=java)