Playground for various javascript related stuff
Just an implementation for Angular tutorial.
Project uses gradle and node plugin https://github.com/srs/gradle-node-plugin. Angular project uses npm and ng-cli to build. Frameworks are integrated by setting in .angular-cli.json output directory and configuring this directory as resource directory (see build.gradle for details)
"outDir": "../../../build/npmbuild/public",
$ npm install @angular/cli –g
$ gradle build
Go to appropriate directory like java-angular and run
$ gradle run
At http://localhost:4567 server will serve js code.
For easier developing run ng-cli build.
ng build -w
ng-cli will constantly monitor and build your code into output directory. java application can be run from IDE that understand gradle (like IntelliJ), so it will add output directory to classpath for the application, so sparkjava will see new compiled js files.
Have fun!