In this post we will cover a simple way to get started with developing a full-stack application using Spring Boot 2 with Kotlin, that builds and bundles a React-application and serves it statically. The react application will use create-react-app for a painful way to setup and develop a SPA (single page application).
This post will be very beginner-friendly.
The main points of interest will be:
- Spring Initializr to set up a gradle project
- Creating a module structure
- Making them talk together
- Packing it all together
- Adding Spek for our backend tests
tl;dr: You’re not interested in the details and you just want to get started? Clone this repo and get coding, and disregard the rest of this blog post.