- Node.js 0.10 or up
- npm (included with Node.js)
- Scala 2.11.4 or up
- Play framework
- Activator (included with Play framework)
- Gulp
Before running the app make sure you've installed all the requirements.
npm install -g bower gulp-cli
After installing the requirements run the following commands:
//installs all necessary npm modules defined in package.json
npm install
//installs all necessary bower packages defined in bower.json
bower install
//compiles all JS and Sass and injects bower packages in main.scala.html
gulp build:dev
//compiles the Play application
activator compile
To run the application run activator run
and in a separate terminal window or tab run either gulp watch
or gulp serve
. Use gulp watch
if you just want to compile client assets (JS, Sass etc.), use gulp serve
if you also want the browser to refresh when you've made changes to client assets.