/spring-react-redux-mocha-chai-mongodb

Spring React Redux Mocha Chai Enzyme Sinon MongoDB

Primary LanguageJavaScript

spring-react-redux-mocha-chai-mongodb

An example application that uses a Spring Framework Java backend with a React Redux frontend. JavaScript Tests - Mocha, Chai, Enzyme and Sinon.

  • Webpack to bundle all the JavaScript and dependencies, plus LESS + CSS handling.
  • Babel for ES6 syntax, using Babel 6 with the "es2016" and "react" presets.
  • Hot module reloading (HMR) of React components
  • Redux to manage state, both in the client and when rendering on the server.
  • react-router for page routing, on client and server
  • Linting integrated with Webpack via eslint.

Running the code

Execute mvn if you have Maven already installed. You'll need Java 1.8.x.

mvn clean install spring-boot:run

Running the Server Tests

mvn test

Running the FrontEnd JavaScript Tests

npm run test