This project shows a fully functioning Spring Boot application which exposes a REST interface that can be used to fetch a list of entities from a MySQL database and render the same in a React based client side application.
- Create a database and a user using the following commands:
CREATE DATABASE contactsdb;
CREATE USER 'john'@'localhost' identified by 'yourpasswordhere';
GRANT ALL ON contactsdb.* to 'john'@'localhost';
-
Import this project into Eclipse or Visual Studio Code
-
Run the webpack bundler in watch mode using:
npx webpack --watch
- Configure application.properties with the appropriate values
- Run the DemoApplication from your IDE
- Access your application at: http://localhost:8080/