The Jhipster Mini-Book
Total Page:16
File Type:pdf, Size:1020Kb
THE JHIPSTER MINI-BOOK Matt Raible Version 5.0.3, 2019-04-19 The JHipster Mini-Book © 2019 Matt Raible. All rights reserved. Version 5.0.3. Published by C4Media, publisher of InfoQ.com. No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recoding, scanning or otherwise except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without the prior written permission of the publisher. Production Editor: Ana Ciobotaru Copy Editor: Lawrence Nyveen Cover and Interior Design: Dragos Balasoiu Library of Congress Cataloguing-in-Publication Data: ISBN: 978-1-329-63814-3 Table of Contents Dedication. 1 Acknowledgements . 2 Preface. 3 What is in an InfoQ mini-book? . 3 Who this book is for. 4 What you need for this book . 4 Conventions . 4 Reader feedback . 6 Introduction . 7 Building an app with JHipster . 8 Creating the application . 10 Building the UI and business logic . 16 Application improvements . 26 Deploying to Heroku . 58 Monitoring and analytics . 64 Securing user data . 65 Continuous integration and deployment . 65 Code quality. 71 Progressive web apps . 72 Source code . 74 Upgrading 21-Points Health. 74 Summary . 74 JHipster's UI components . 76 Angular . 77 Bootstrap . 87 Internationalization (i18n) . 100 Sass . 101 Webpack. 103 WebSockets . 105 Browsersync . 109 Summary . 111 JHipster's API building blocks . 112 Spring Boot . 113 Spring WebFlux . 126 Maven versus Gradle . 126 IDE support: Running, debugging, and profiling . 129 Security. 130 JPA versus MongoDB versus Cassandra . 132 Liquibase . 133 Elasticsearch . 134 Deployment . 135 Summary . 136 Microservices with JHipster. 137 History of microservices . 138 Why microservices? . 139 Microservices with JHipster . ..