A starter project using Spring and React
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docker
mysql
src
.babelrc
.bowerrc
.gitignore
Gruntfile.js
LICENSE
README.md
bitbucket-pipelines.yml
bower.json
docker-build-base-image.sh
docker-build-containers.sh
docker-build-images.sh
docker-compose-dev.yml
docker-start-containers.sh
docker-stop-containers.sh
package.json
pom.xml
run-local-web-server.sh
secure.env

README.md

Spring React Starter App

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.

Requirements

  • Maven 3 and above
  • Java 8
  • MySQL

Quickstart

  1. Install and set up MySQL. You may use the scripts provided in 'mysql' directory to do so.
  2. Add an entry in your '/etc/hosts' file for 'mysql', pointing to your local machine (127.0.0.1).
  3. Check src/main/resources/application.properties and make sure you have the right database configuration.
  4. Run 'mvn clean install'.
  5. Run ./run-local-server.sh script.
  6. Access the application at http://localhost:8080.

Running in Docker

  1. Make sure you can at least build the project, runnign 'mvn clean install'.
  2. Run ./docker-build-images.sh to create Docker images.
  3. Run ./docker-build-containers.sh to create Docker containers.
  4. Run ./docker-start-containers.sh to start containers.
  5. Access the application at http://localhost:8080.
  6. Stop containers by running './docker-stop-containers.sh'.

Credits and Links