This is a simple starter web app using Spring Boot and React.js, also wired to use database to persist state. This project provides isomorphic web applicaion, i.e. using the same templates in server and client side.
- Maven 3 and above
- Java 8
- MySQL
- Install and set up MySQL. You may use the scripts provided in 'mysql' directory to do so.
- Add an entry in your '/etc/hosts' file for 'mysql', pointing to your local machine (127.0.0.1).
- Check src/main/resources/application.properties and make sure you have the right database configuration.
- Run 'mvn clean install'.
- Run ./run-local-server.sh script.
- Access the application at http://localhost:8080.
- Make sure you can at least build the project, runnign 'mvn clean install'.
- Run ./docker-build-images.sh to create Docker images.
- Run ./docker-build-containers.sh to create Docker containers.
- Run ./docker-start-containers.sh to start containers.
- Access the application at http://localhost:8080.
- Stop containers by running './docker-stop-containers.sh'.
- Benjamin Winterberg's blog post on how to build isomorphic webapps on JVM using React.js and Spring Boot.
- React Tutorial
- Spring Boot - Working with SQL databases