Skip to content

Simple counter app with play 2.6.10, scala 2.12.4, react and redux

License

Notifications You must be signed in to change notification settings

linkebon/counter-app

Repository files navigation

todo app with scala 2.12.4, playframework 2.6.10, react 16.2.0 and redux 3.7.2

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>
} 

Build

npm needs to be installed globally and in path

universal dist

  • ./build.sh

dev

start playserver with debug port 9999

  1. /sbt run -jvm-debug 9999
  2. cd frontend/react-redux-counter-app
  3. npm install
  4. export NODE_ENV=production
  5. npm run generateFrontends or - /node_modules/webpack/bin/webpack.js

About

Simple counter app with play 2.6.10, scala 2.12.4, react and redux

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published