/spring-react-boilerplate

Boilerplate application to demonstrate how to wire up Spring, JWT Authentication, React, Redux and Websockets

Primary LanguageJavaMIT LicenseMIT

spring-react-boilerplate

CircleCI Coverage Status

Boilerplate application to demonstrate how to wire up Spring, JWT Authentication, React, Redux and Websockets.

Local Development

Install Maven and Yarn

Start com.naughtyzombie.boilerplate.springreactboilerplate.SpringReactBoilerplateApplication in your IDE

Then start the front end

cd src/main/app
yarn start

The front end will start on port 3000.

Running locally

To build and run locally

mvn spring-boot:run

You can now access the app on port 8080

Build deployable package

To build a deployable artifact

mvn package

The self contained jar will be created in ${project.basedir}/target

To run the app

java -jar target/spring-react-boilerplate-0.0.1-SNAPSHOT.jar

You can now access the app on port 8080

User details

admin/admin
user/password