JHipster Generator

9.0.0 · active · verified Sun Apr 19

JHipster is an open-source development platform used to quickly generate, develop, and deploy modern web applications and microservices. It combines popular frontend frameworks like Angular, React, and Vue with a robust Spring Boot backend, supporting various database options and authentication mechanisms. The current stable version is 9.0.0, released in late 2024. JHipster follows a rapid release cadence, with several minor and patch releases within major versions, and new major versions introducing significant technology stack upgrades (e.g., Spring Boot 4, Angular 21, React 19 in v9). Its key differentiators include comprehensive full-stack generation with production-ready defaults, extensive customization options via a powerful CLI, and strong support for microservices architectures, making it suitable for enterprise-grade applications. The project recently underwent a complete TypeScript rewrite for its generator core, enhancing maintainability and developer experience.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart outlines the essential steps to install the JHipster generator and scaffold a new full-stack application using the `yo jhipster` command-line interface.

// Quickstart for JHipster v9.0.0
// This demonstrates the typical setup and generation of a JHipster application.

// 1. Install Yeoman globally if you haven't already.
// Yeoman is the scaffolding tool that runs JHipster generators.
console.log('Installing Yeoman globally...');
// npm install -g yo

// 2. Install the JHipster generator globally.
console.log('Installing JHipster generator globally...');
// npm install -g generator-jhipster

// 3. Create a new directory for your application and navigate into it.
// mkdir myapp
// cd myapp

// 4. Run the JHipster generator. This will start an interactive prompt
// where you can configure your application's type, technologies, and features.
console.log('Running JHipster generator...');
// yo jhipster

// During the interactive process, you'll be asked questions such as:
// - Which type of application would you like to create? (Monolithic, Microservice, Gateway)
// - Which front-end framework would you like to use? (Angular, React, Vue)
// - Which type of authentication would you like to use? (JWT, OAuth 2.0, Session)
// - Which database would you like to use? (SQL, MongoDB, Cassandra, etc.)
// - Which build tool would you like to use? (Maven, Gradle)

// After generation, you can run your application.
console.log('JHipster application generated. To run:');
console.log('  cd myapp');
console.log('  ./mvnw (for Maven) or ./gradlew (for Gradle) to build and run the backend.');
console.log('  npm start or yarn start (in the frontend folder) to run the frontend.');

// This provides a full-stack application ready for development.

view raw JSON →