Hipster stack for Java developers
Presentation
This is a Yeoman generator, used to create a Yeoman + Maven + Spring + AngularJS project.
Our goal is to generate a complete and modern Web app, unifying:
- Maven on the server side
- Yeoman + Bower + Grunt on the client side
You can checkout a sample generated application here.
Technology stack on the server side
A complete Spring application:
Ready to go into production :
- Monitoring with Metrics
- Caching with ehcache
- Optimized static resources (gzip filter, HTTP cache headers)
- Log management with Logback, configurable at runtime
- Builds a standard WAR file
Technology stack on the client side
Single Web page application :
Easy installation of new libraries with Bower.
Build, optimization and live reload with Grunt.
Installation
Install Node.js from the Node.js website.
Install Yeoman:
npm install -g yo
Install JHipster:
npm install -g generator-jhipster
To find more information, tips and help, please have a look at
the Yeoman "getting starting" guide before
submitting a bug.
Usage
To generate your application, type:
yo jhipster
Once the application is generated, you can launch the Java server with Maven:
mvn jetty:run
The application will be available on http://localhost:8080
You can also run Grunt to work on the client-side JavaScript application:
grunt server
This should open up your Web browser, with live reload enabled, on http://localhost:9000. This
Grunt server has a proxy to the REST endpoints on the Java server which we just launched (on
http://localhost:8080/rest), so it should be able to do live REST requests to the Java
back-end.
If you want to go further, and use hot reloading both on the client and the server side, please go to this Wiki page.
Copyright (C) 2013 Julien Dubois