/spring_react_demo

How to write a react.js app with spring as backend

Primary LanguageJavaScript

Spring and React.js demo

Demonstration on how to use React.js with Spring when isn't possible to use docker and with a single deployment. This project is a demo related to this article.

Requirements

  • Java SDK v1.6 or higher
  • Apache Maven 3.2 or above

Installation

cd /apps/demo
yarn install
yarn build
cd ../../
mvn spring-boot:run

visit localhost:8080

To run react app without spring on webpack-dev-server

cd apps/demo
npm install
npm start

visit localhost:3000