Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Get Hip with JHipster: Spring Boot + AngularJS + Bootstrap - DOSUG February 2016


Published on

YouTube of this presentation's JHipster Demo:

Building a modern web (or mobile) application requires a lot of tools, frameworks and techniques. This session shows how JHipster unites popular frameworks like AngularJS, Spring Boot and Bootstrap. Using Yeoman, a scaffolding tool for modern webapps, JHipster will generate a project for you and allow you to use Java 8, SQL or NoSQL databases, Spring profiles, Maven or Gradle, Grunt or Gulp.js, WebSockets and Browsersync. It also supports a number of different authentication mechanisms: classic session-based auth, OAuth 2.0, or JWT authentication.

For cloud deployments, JHipster includes out-of-the-box support for Cloud Foundry and Heroku.

Published in: Technology
  • Follow the link, new dating source: ♥♥♥ ♥♥♥
    Are you sure you want to  Yes  No
    Your message goes here
  • Dating for everyone is here: ❶❶❶ ❶❶❶
    Are you sure you want to  Yes  No
    Your message goes here

Get Hip with JHipster: Spring Boot + AngularJS + Bootstrap - DOSUG February 2016

  1. 1. Photos by Get Hip with JHipster! Matt Raible •
  2. 2. Blogger on Founder of AppFuse Father, Skier, Mountain Biker, Whitewater Rafter Web Framework Connoisseur Who is Matt Raible? Bus Lover
  3. 3. What about YOU? Are you a Java Developer? How long have you been doing web development? Do you like JSF? Do you like GWT? Do you like JavaScript?
  4. 4. Do you want to be a hip Java Developer?
  5. 5. Java 8 Parallel Collections JSR 310 Date and Time API Functional Interfaces with default method Lambda Expressions (a.k.a. Closures) Nashorn JavaScript Engine // sort a list by lastName List<Person> persons = ...; persons.sort((p1, p2) -> p1.getLastName().compareTo(p2.getLastName()));
  6. 6. Hipster n. noun 1. One who is exceptionally aware of or interested in the latest trends and tastes.
  7. 7. Latest trends in JavaLand? Annotations Environments: dev, test, production Microservices Container-less Deployment Monitoring
  8. 8. Spring Boot Create stand-alone Spring applications Embeds Tomcat, Jetty or Undertow directly Provides opinionated 'starter' POMs to simplify your Maven configuration Also supports/promotes using Gradle
  9. 9. Spring Boot Automatically configures Spring whenever possible Provides production-ready features such as metrics, health checks and externalized configuration Absolutely no code generation and no requirement for XML configuration Grails 3.0 is based on Spring Boot
  11. 11. Spring Boot Demo
  12. 12. Latest trends in Web Development? JavaScript MVC Frameworks CSS 3 with Animations Mobile First Front-End Optimization REST APIs
  13. 13. Google Trends
  14. 14. Google Trends
  15. 15. The most starred project on GitHub?
  16. 16. What’s #4?
  17. 17. November 2015
  18. 18. Wouldn’t it be hip if…? ⚭
  19. 19. JHipster
  20. 20. JHipster Project Web Statistics, January 2016 187K Page Views 12K Downloads GitHub Statistics 3356 Stars 184 Contributors
  21. 21. JHipster Downloads
  22. 22. JHipster Spring Boot Spring Security AngularJS Bootstrap Metrics Maven or Gradle Authentication Type: cookie-based (with Social), token-based or OAuth2 Type of Database: SQL or NoSQL Caching: EhCache or Hazelcast Grunt or Gulp.js Foundational Frameworks Project Options
  23. 23. JHipster Features Authentication and Security Spring Boot Metrics Dashboard Bootstrap and AngularJS Integrated REST API with Spring MVC JPA Support and NoSQL Support CRUD Generation Internationalization
  24. 24. Yeoman The web's scaffolding tool for modern webapps Helps you kickstart new projects Promotes the Yeoman workflow
  25. 25. Browsersync
  26. 26. Demo Time!
  27. 27. Generate a basic blog application Look at its configuration 
 Generate the CRUD entities Limit blogs to current user, allow HTML Deploy to Demo Goals … all in 20 minutes!
  28. 28. Demo Entity Diagram
  29. 29. JHipster UML 12 entities, 17 relationships: JHipster: 1h 15 minutes JHipster UML: 30 minutes
  30. 30. JHipster UML Supported UML Editors Modelio UML Designer GenMyModel (not free) Visual Paradigm (not free, but proposes a community edition)
  31. 31. High Performance Scala, Akka and Netty Nice HTML-based Reporting Scenario Recorder Load Testing with Gatling val scn = scenario("Test the Blog entity")
 .exec(http("First unauthenticated request")
 .formParam("username", "admin")
 .formParam("password", "admin")
 .exec(http("Authenticated request")
 .repeat(2) {
 exec(http("Get all blogs")
 .pause(10 seconds, 20 seconds)
 .exec(http("Create new blog")
 .body(StringBody("""{"id":null, "name":"SAMPLE_TEXT", "handle"
  32. 32.!/news/entry/adding-protractor-tests What about UI Testing?
  33. 33. JHipster Modules Entity Audit Swagger2Markup Bootstrap Material Designs + many more!
  34. 34. JHipster 3.0 Microservices based on Spring Cloud and Netflix Stack JJWT instead of XAuth Docker image to Pluralization of generated entities Remove the "fast" profile Restructuring based on John Papa’s Style Guide Est. March 2016
  35. 35. How sweet is JHipster?! AngularJS, Java 8, Microservices - what more could you want?
  36. 36. Angular 2.0 <input type="text" [value]="firstName"> <button (click)="addPerson()">Add</button> <input type="checkbox" [checked]="someProperty">
  37. 37. Concepts Eliminated in Angular 2.0 Controllers Directive Definition Object $scope angular.module jqLite
  38. 38. Angular 2: Template Syntax
  39. 39. The JHipster Mini-Book Written with Asciidoctor Quick and to the point, 130 pages Developed a Real World App: Free Download from
  40. 40. Lines of Code in 21-Points 0 3500 7000 10500 14000 Project Created Entities Generated Business Logic and UI 13,888 12,736 8,556
  41. 41. Project Creation Entities Generated Biz Logic and UI 0 3500 7000 10500 14000 2,323 2,214 1,465 4,044 3,776 2,595 6,087 5,505 3,752 Java JavaScript HTML Lines of Code by Language
  42. 42. Learn More
  43. 43. Getting Help
  44. 44. The JHipster Mini-Book 1.0 Release on October 30 @jhipster_book Write your own InfoQ mini-book!
  45. 45. Stay hip by following me! @mraible Presentations Code Questions?