From the course: Spring Boot and React: Build Scalable and Dynamic Web Apps

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Setting up the build

Setting up the build

- [Instructor] Now we need to do one more bit of wiring to tie the two projects together into one in order for us to get going. So let's discuss that for a moment. So what we have set up so far is this. We have our machine, and on our machine by executing npm-start, we would run a node server that exposes the React application on Port 3000 by default. This React application is really nothing more than static files, an HTML page, and some JavaScript. But Node is actually doing the serving of the application. We've also got a Spring Boot application that if we built it into an executable JAR file and ran it it would run on the JVM and listen on Port 8080 by default. Now, because we added Spring Web, it can do this. It can also serve static files, and it does that by any files in source main resources in the static directory get served at the root of the application context. Now, we don't want to run two application servers…

Contents