Skip to content

arrwhidev/nashorn-webpack-react-redux-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nashorn-webpack-react-redux-boilerplate

Boilerplate featuring;

  • Server rendering using Nashorn.
  • Server built with Spring Boot.
  • JavaScript application built with react, redux, react-router.
  • JavaScript packaged with Webpack.
  • JavaScript tests with mocha & chai.
  • Local express development server with hot reloading.

Instructions

Working locally on the React app

cd src/main/webapp/react-app

Navigates to React app working directory.

npm install

Installs node dependencies.

npm start

Starts up a local dev server listening on http://localhost:3000/app.

Supports hot reloading (i.e. won't require refresh after changing React components, etc).

npm run test

Runs unit tests once.

npm run test-watch

Runs unit tests in a TDD style, will auto re-run tests when you save files.

npm run build

Will build the JS with webpack (not a manually required step, see next section).

Building the JAR

mvn clean package

Building with maven will download and install node, run the tests, build React app with webpack and then package it all up into a JAR.

About

Boilerplate for nashorn webpack react redux springboot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published