Mavenized Java server application and Angular.js frontend application using yeoman

Setting up Angular.js using Yeoman

In Gruntfile.js change application config, so the application is compiled into java resources

Finally add build plugin to pom.xml so the js appliacation and all of its resources are built into your Java resources. Notice that for workingDirectory I'm using my directory 'ui'.

The build should pass and you can deploy your appliacation to a server container of your choosing.

I'm using Spring (along with Spring Boot). A simple controller like this:

Should yield a result like this:

I've based this article on Gunnar Hillert's Botanic-ng and my own experimentation.

Comments

Popular posts from this blog

Android Virtual Machine and non-ASCII characters the path

Installing FANN on Java project and NativeLibrary.loadLibrary problems with 32bit/64bit

MongoDB and distinct values in arrays