Full Stack Development with JHipster
eBook - ePub

Full Stack Development with JHipster

Deepu K Sasidharan, Sendil Kumar N

Condividi libro
  1. 380 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Full Stack Development with JHipster

Deepu K Sasidharan, Sendil Kumar N

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

Discover the world of Full Stack Development with real-world examples.

Key Features

  • Leverage the full power of the JHipster platform to build complex web applications
  • Create microservices from scratch and convert JHipster monolith apps into microservices
  • Build and deploy applications locally, in Docker and on various cloud platforms.

Book Description

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.

What you will learn

  • Build business logic by creating and developing entity models us the JHipster Domain Language
  • Customize web applications with Angular, Bootstrap and Spring
  • Tests and Continuous Integration with Jenkins
  • Utilize the JHipster microservice stack, which includes Netflix Eureka, Spring Cloud config, HashiCorp Consul, and so on.
  • Understand advanced microservice concepts such as API rout, load balancing, rate limit, circuit break, centralized configuration server, JWT authentication, and more
  • Run microservices locally using Docker and Kubernetes (in production)

Who this book is for

This book will appeal to developers who would like to build modern web applications quickly. A basic knowledge of the Spring ecosystem would be an added advantage.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Full Stack Development with JHipster è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Full Stack Development with JHipster di Deepu K Sasidharan, Sendil Kumar N in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Computer Science e Programming in Java. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2018
ISBN
9781788470186
Edizione
1

Building Monolithic Web Applications with JHipster

Let's get into action and build a production-grade web application using JHipster. Before we start, we need a use case. We will be building an e-commerce web application that manages products, customers, and their orders and invoices. The web application will use a MySQL database for production and will have an Angular front end. The UI for the actual shopping website will be different from the back office features, which will only be available for employees who have an administrator role. For this exercise, we will only be building a simple UI for the client-facing part. We will talk about other option as we go through this chapter.
In this chapter, we will:
  • See how to create a monolithic web application using JHipster
  • Walk through important aspects of the generated code
  • See the security aspects of the generated application
  • See how to run the application and tests
  • See the generated frontend screens
  • See the tools included that will ease further development
This chapter will require the use of a terminal (command prompt on windows) app throughout. You can the see previous chapter for more info about that.

Application generation

Before we start generating the application, we need to prepare our workspace as this workspace will be used throughout this book, and you will be creating many Git branches on this workspace as we proceed.
Visit http://rogerdudler.github.io/git-guide/ for a quick reference guide on Git commands.

Step 1 – preparing the workspace

Let's create a new folder for the workspace. Create a folder called e-commerce-app and from the terminal, navigate to the folder:
> mkdir e-commerce-app
> cd e-commerce-app
Now, create a new folder for our application; let's call it online-store and navigate to it:
> mkdir online-store
> cd online-store
Now, we are ready to invoke JHipster. Let's first make sure everything is ready by running the jhipster --version command. It should print a globally installed JHipster version, otherwise you'll need to follow the instructions from the previous chapter to set it up.
It is always better to use the latest versions of the tools as they might include important bug fixes. You can upgrade JHipster anytime using the command yarn global upgrade generator-jhipster

Step 2 – generating code using JHipster

Initialize JHipster by running the jhipster command into the terminal, which will produce the following output:
JHipster will ask a number questions to get input about different options which are required. The first question is about the application type that we want, and we are presented with the following four options:
  • Monolithic application: As the name suggests, it creates a monolithic web application with a Spring Boot-based backend and an SPA frontend.
  • Microservice application: This creates a Spring Boot microservice without any frontend, and is designed to work with a JHipster microservice architecture.
  • Microservice gateway: This creates a Spring Boot application very similar to the monolithic application but geared towards a microservice architecture with additional configurations. It features an SPA frontend.
  • JHipster UAA server: This creates an OAuth2 User authentication and Authorization service. This will not feature any frontend code and is designed to be used in a JHipster microservice architecture.
We will choose the monolithic application for our use case. We will talk and look at the other options in detail in Chapter 8, Introduction to Microservice Server-Side Technologies, of this book.
Run jhipster --help to see all available commands. Run jhipster <command> --help to see help information for a specific command; for example, jhipster app --help will display help information for the main app generation process.

Server-side options

The generator will ...

Indice dei contenuti