To put React SPA inside a war file of Spring Boot and run it in the tomcat. This starter kit is using React 17 and Spring Boot to start a full stack application using Restful APIs provided by Spring Boot.
To start you need the following prerequisite in your machine.
- JDK 11+
- NodeJS LTS
- GIT
- VS code - to work with React Demo
- Intellij/Eclips for java spring boot. You can manage it through the VS code.
Let's begin when you are done with prerequisite.
Lets clone it
git clone https://github.com/bestuimaker/react-springboot.git
cd react-springboot
mvnw spring-boot:run
Once you run the server you can visit the following URL in browser
you can change port in the application.property file under resources.
Configure the application according your need!
In case you need a starter kit for React/Spring Boot/JPA then visit here
Thats all!
Notify me in case you need any help on it.