Project Structure
1. Overview
Node.js is required for generation and recommended for development. The package.json file provides an improved development experience with Prettier, commit hooks, scripts, and other tooling.
2. Root Directory
The project root contains configuration files for common development tools:
| File/Directory | Purpose |
|---|---|
|
Yeoman configuration file. JHipster configuration is stored under the |
|
(Optional) Yeoman conflict resolver. Specifies actions for file conflicts using patterns. Format: |
|
JHipster entity configuration files |
|
Wrapper for locally installed npm. JHipster installs Node and npm locally using the build tool. Use |
|
Docker configurations for the application and its dependent services |
3. Source Structure
The /src/* directory follows the standard Java project structure:
src/
├── main/
│ ├── java/ # Java source code
│ ├── resources/ # Application configuration
│ ├── webapp/ # Angular frontend application
│ │ ├── app/ # Angular components and services
│ │ └── content/ # Static content (CSS, images)
│ └── docker/ # Docker compose files
└── test/
├── java/ # Java unit and integration tests
└── javascript/ # Frontend tests (Jest, Cypress)
4. Configuration Files
4.1. Build Configuration
| File | Purpose |
|---|---|
|
Maven build configuration |
|
npm dependencies and scripts |
|
npm registry configuration (including private packages) |
|
Angular CLI configuration |
|
TypeScript compiler configuration |