This project have playframework as a backend and uses react and redux for frontend. All js frontend code when bundeled is placed under ./public/js
The js files have to be included in a play view e.g. todoApp.scala.html
@()
@main("Todo app") {
<div>
</div>
<div id="reactView"></div>
<script src="@routes.Assets.versioned("js/bundle_todoapp.js")"></script>
}
npm needs to be installed globally and in path
- ./build.sh
start playserver with debug port 9999
- /sbt run -jvm-debug 9999
- cd frontend/react-redux-counter-app
- npm install
- export NODE_ENV=production
- npm run generateFrontends or - /node_modules/webpack/bin/webpack.js