Book Image

Full Stack Development with JHipster,

By : Deepu K Sasidharan, Sendil Kumar Nellaiyapen
Book Image

Full Stack Development with JHipster,

By: Deepu K Sasidharan, Sendil Kumar Nellaiyapen

Overview of this book

JHipster is a development platform to generate, develop, and deploy Spring Boot and Angular/React applications and Spring microservices. It provides you with a variety of tools that will help you quickly build modern web applications. This book will be your guide to building full stack applications with Spring and Angular using the JHipster tool set. You will begin by understanding what JHipster is and the various tools and technologies associated with it. You will learn the essentials of a full stack developer before getting hands-on and building a monolithic web application with JHipster. From here you will learn the JHipster Domain Language with entity modeling and entity creation using JDL and JDL studio. Moving on, you will be introduced to client side technologies such as Angular and Bootstrap and will delve into technologies such as Spring Security, Spring MVC, and Spring Data. You will learn to build and package apps for production with various deployment options such as Heroku and more. During the course of the book, you will be introduced to microservice server-side technologies and how to break your monolithic application with a database of your choice. Next, the book takes you through cloud deployment with microservices on Docker and Kubernetes. Going forward, you will learn to build your client side with React and master JHipster best practices. By the end of the book, you will be able to leverage the power of the best tools available to build modern web applications.
Table of Contents (23 chapters)
Title Page
Copyright and Credits
Dedication
Packt Upsell
Foreword
Contributors
Preface
Index

Entity generation with JHipster


Now, it's time to generate the domain model with our JDL. We will use the import-jdl command from JHipster for this.

Open your favorite Terminal application and navigate to the online-store folder where we created the application earlier. Then, execute the import-jdl command:

> cd online-store
> jhipster import-jdl online-store.jh

This will trigger the entity creation process and you will be asked to confirm the overwriting of existing files with changes. Take a look at the following screenshot:

Enter a to confirm the overwrite of all files with changes. Once the files are generated, JHipster will trigger a yarn webpack:build step to rebuild the client side code. Once done you will see a success message like the following:

Running git status on the Terminal shows us that five files were modified and a lot of new files added. Let's commit the changes to Git. Execute the commands shown here:

> git add --all
> git commit -am "generated online store entity...