Quarkus Integration
In this chapter, we’ll learn how to integrate the React frontend and Quarkus backend projects so that the application can be deployed and distributed as a single service monolith. We’ll start by analyzing the advantages and disadvantages of a microservice distributed architecture over a monolithic one, and evaluate why we should prefer a monolithic deployment for our task manager. Then, we’ll learn how to set the Quarkus Maven configuration to build the frontend project and account for its generated resources. Next, we’ll implement a Quarkus HTTP resource that will serve the frontend files and learn how to configure the application for a native build.
By the end of this chapter, you should be able to configure a Maven project and implement the required Quarkus logic to be able to serve a single-page application (SPA) from Quarkus. Serving a JavaScript frontend application from Quarkus can be very useful to ease deploying simple applications...