Navigation Menu

Skip to content

n0rmzzz/spring-react-starter-app

Repository files navigation

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

About

A starter project using Spring and React

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published