This example app shows how to create a Spring Boot API and CRUD (create, read, update, and delete) its data with a React app.
Prerequisites: Java 8, Node.js 8+, and Yarn. You can use npm instead of Yarn, but you'll need to translate the Yarn syntax to npm.
To install this example application, run the following commands:
git clone https://github.com/duTianze/spring-react.git
cd spring-react
This will get a copy of the project installed locally. To install all of its dependencies and start each app, follow the instructions below.
To run the server, run:
./mvnw spring-boot:run
To run the client, cd into the app
folder and run:
yarn && yarn start
This example uses the following open source libraries:
Use React and Spring Boot to Build a Simple CRUD App
Apache 2.0, see LICENSE.