JHipster: Spring Boot + Angular + MongoDB CRUD example
Hello everyone, today we will learn how to generate a Monolithic Full-stack web application that is a basic Employee Management Application using JHipster. Technologies used: Spring Boot, Angular, MongoDB, Maven.
If everything works well, then finally you see the following output in your terminal:
The application will be available on http://localhost:8080
User Interface
What is JHispter?
JHipster is an open-source application development platform to quickly generate, develop, & deploy modern web applications & microservice architectures using Angular or React or Vue and Spring Boot or Quarkus Frameworks.
JHipster Environment Setup
Step 1: Install Java 11, click here
Step 2: Install Node.js, click here
Step 3: Install JHipster using the following command
npm install -g generator-jhipsteror
yarn global add generator-jhipsteror
Download the JHipster Docker image, click here
Step 4(Optional):
You normally don’t have to install anything, as JHipster will automatically install the Maven Wrapper or the Gradle Wrapper for you.
Creating the Full-stack CRUD application using JHipster
Step 1: Create an empty directory in which you will create your application.
mkdir myappcd myappStep 2: To auto-generate your application, type below command
jhipsterClick Enter,
If everything goes fine, then you see the following output in your terminal:
Create the Entity called Employee
jhipster entity EmployeeAnswer the questions asked by the generator to create the entity.
If everything goes fine, then you see the following output in your terminal:
Running the Application
Once the application is generated, you can launch it using
Maven
./mvnwGradle
./gradlewStarting the Spring Boot application on port 8080:
If everything works well, then finally you see the following output in your terminal:
The application will be available on http://localhost:8080
Demo
- You will get the Employee management page.
Comments
Post a Comment