DEV Community

nicolas63
nicolas63

Posted on • Edited on

2

Generate your asp.net core application with JHipster.NET

JHipster is a well-known platform for generating modern application in java world.

JHipster provides a blueprints system that allows to override default behavior of the generator

JHipster.NET

https://github.com/jhipster/jhipster-dotnetcore

JHipster.NET is a blueprint that overrides the back-end part, originally generated in spring boot, by back-end in asp.net core. For the front-end all the common language can be used (angular, react)

Generate your first application :

Installation of the blueprint

npm install -g generator-jhipster-dotnetcore

Call the generator

jhipster --blueprints dotnetcore

After running this command you have few questions to answer, as Application name, authentication mode, client framework etc
Once it's done, you can build and run your application.

dotnet run --verbosity normal --project ./src/YourAppName/YourAppName.csproj

Your first application is ready and you can now use it with default user like JHipster (admin admin or user user)

Ok now you have an application but without entity.
JHipster allow you to add entity with cli or with jdl file (add link)
JHipster.NET have the same behavior.

jhipster entity <entity-name>

Or with jdl

jhipster import-jdl my_file.jdl

You can edit jdl with https://start.jhipster.tech/jdl-studio/

You have now an application with CRUD operations on each new entities with potentially link between entities (one-to-one, many-to-one or many-to-many)

Default configurations are availables in the generated project. As an example, a docker compose file is generated with monitoring solutions (influxdb telegraf and chronograf or grafana)

The repository : https://github.com/jhipster/jhipster-dotnetcore
Sample project : https://github.com/jhipster/jhipster-sample-app-dotnetcore

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay