• Stars
    star
    248
  • Rank 158,145 (Top 4 %)
  • Language EJS
  • License
    Apache License 2.0
  • Created almost 5 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A NodeJS blueprint that creates the backend using NestJS

generator-jhipster-nodejs

NPM version Dependency Status Generator Build Status Generator Test Status Sonar Cloud Quality Gate Sonar Cloud Coverage Rate Sonar Cloud Reliability Rate Sonar Cloud Security Rate Sonar Cloud Maintainability Rate Sonar Cloud Duplicated Code Gitter Downloads

generator-jhipster-nodejs, the official NodeJS blueprint that uses NestJS TypeScript Framework for your backend. We encourage you to use it and give us your feedback.

Notes

For the features of the last release refers to CHANGELOG.md.

Demo

The UI is inherited from standard JHipster app client. So only backend generation changes. For this, a live app running is less useful than the code and the app structure shows in:

Greetings, nodejs Hipster!

This project adds nodejs for your backend, all TypeScript files generation, not Java!, to the JHipster application 😎. It is based on JHipster Blueprint 🔵, that is meant to be used in a JHipster application.

The generator applies this standard configuration for the NodeJS app:

  • The app starts with four seed users (admin, basic user and anonymous roles), as standard JHipster monolithic app, with SQLite for dev and configurable sql db for prod. But from the 1.5.0 release you can choose mongodb that uses a memory version for dev/test
  • The app uses TypeORM and asks you a question for another sql db or for mongodb
  • TypeORM is also used for the automatically migration and versioning of the database scripts
  • The app runs also as a full stack app including, for the monolitich choice, the Angular/React client with the home page set for NHipster and CRUD operations for entity generated with subgenerator and jdl import

A previous of a jwt auth app:

Prerequisites

As this is a JHipster blueprint, we expect you have JHipster and its related tools already installed:

Please attention to install that node.js version!!

🚀 How to get started

  1. Make sure you have followed the JHipster installation guide and that both yeoman and jhipster are installed.
  2. Install the package with npm install -g generator-jhipster-nodejs
  3. And generate the application with nhipster

Installation Details

With NPM

To install this blueprint:

npm install -g generator-jhipster-nodejs

To update this blueprint:

npm update -g generator-jhipster-nodejs

With Yarn

To install this blueprint:

yarn global add generator-jhipster-nodejs

To update this blueprint:

yarn global upgrade generator-jhipster-nodejs

🚦 What we have now

This is a blueprint that is runnable by:

jhipster --blueprints nodejs

However, it also ships with an nhipster CLI that you can use as a shortcut.

General App generation

  • nhipster

Controller generation

  • nhipster spring-controller <controller-name>

Service generation

  • nhipster spring-service <service-name>

Entity generation

  • nhipster entity <entity-name>

JDL Entity model support generation

  • nhipster import-jdl my_file.jdl

Ci-cd generation

  • nhipster ci-cd

For the last, in the test-integration/samples/FOLDER_NAME-jdl there are some examples of jdl models.

Using Docker

  1. Download the Dockerfile:
mkdir docker
cd docker
wget https://github.com/jhipster/generator-jhipster-nodejs/raw/master/docker/Dockerfile
  1. Build the Docker images:
docker build -t jhipster-generator-nodejs:latest .
  1. Make a folder where you want to generate the Application:
mkdir app
cd app
  1. Run the generator image in one of the two following options.
  • Run the generator from image to generate service:
docker run -it --rm -v $PWD:/home/jhipster/app jhipster-generator-nodejs
  • Run and attach interactive shell to the generator docker container to work from inside the running container:
docker run -it --rm -v $PWD:/home/jhipster/app jhipster-generator-nodejs /bin/bash

🛠 Steps to develop a generator feature and test it

Shell steps:

$ git clone https://github.com/jhipster/generator-jhipster-nodejs.git
$ cd generator-jhipster-nodejs
$ git checkout -b feature/my-feature
$ npm install
$ npm link
$ cd ..
$ git clone https://github.com/jhipster/generator-jhipster.git
$ cd generator-jhipster
$ git checkout v7.0.0
$ npm install
$ npm link
$ cd ..
$ mkdir test-generation
$ cd test-generation
$ npm link generator-jhipster
$ npm link generator-jhipster-nodejs

Now you will develop under the generator-jhipster-nodejs that you have cloned with git. After finish, to generate the app and check your feature, run in test-generation folder:

  • nhipster

❤️ For community

Found an issue, check if is already opened or closed, otherwise open a new feature or bug.

Interested in contributing, check out our contributing guide to get started.

Refer for contribution to roadmap or to kanban board.

Any questions Angelo Manganiello.

Contributors

Thanks goes to these wonderful people:

Angelo Manganiello (founder stream lead)
Angelo Manganiello
(founder stream lead)
Hadi Rasouli
Hadi Rasouli
Iván García Sainz-Aja
Iván García Sainz-Aja
Daniel Franco
Daniel Franco
Ed Pham
Ed Pham
Markus
Markus

Special Thanks

License

Apache-2.0 © Angelo Manganiello

More Repositories

1

generator-jhipster

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
TypeScript
21,203
star
2

jhipster-sample-app

This is a sample application created with JHipster
TypeScript
1,338
star
3

prettier-java

Prettier Java Plugin
Java
1,029
star
4

jhipster-registry

JHipster Registry, based on Spring Cloud Netflix Eureka and Spring Cloud Config
TypeScript
693
star
5

jhipster-kotlin

Kotlin based JHipster
Kotlin
445
star
6

jhipster-lite

JHipster Lite ⚡ is a development platform to generate, develop & deploy modern web applications & microservices architecture, step by step - using Hexagonal Architecture 💎
Java
413
star
7

jhipster

DEPRECATED: use https://github.com/jhipster/jhipster-bom instead
Java
409
star
8

jdl-studio

JDL Studio is an online JHipster Domain Language visual editor
TypeScript
403
star
9

jhipster-core

JHipster Domain Language, used by JHipster UML and JDL-Studio to generate entities
JavaScript
344
star
10

jhipster.github.io

Public website for JHipster - generates https://www.jhipster.tech
JavaScript
342
star
11

jhipster-dotnetcore

JHipster.NET blueprint
EJS
305
star
12

jhipster-vuejs

A Vue.js blueprint for JHipster. It will use Vue.js as the frontend library!
TypeScript
300
star
13

generator-jhipster-react-native

A React Native blueprint for JHipster
EJS
259
star
14

jhipster-uml

UML support for JHipster
JavaScript
258
star
15

jhipster-console

JHipster monitoring & alerting console, based on ELK
Go
226
star
16

jdl-samples

Sample JDL files
215
star
17

jhipster-sample-app-react

This is a sample application created with JHipster, using React
Java
212
star
18

jhipster-online

JHipster Online lets you generate your JHipster projects through a user friendly web interface.
Java
201
star
19

jhipster-devbox

JHipster virtualized development box
Shell
200
star
20

generator-jhipster-ionic

Ionic for JHipster ✨
TypeScript
186
star
21

jhipster-guides

Guides to help you learn JHipster quickly
Shell
177
star
22

generator-jhipster-quarkus

Quarkus blueprint for JHipster
EJS
135
star
23

generator-jhipster-entity-audit

JHipster module to enable entity audit and audit log page
EJS
127
star
24

jhipster-ide

An IDE for the JHipster Domain Language
Xtend
124
star
25

ng-jhipster

JHipster Angular library
TypeScript
123
star
26

generator-jhipster-micronaut

Micronaut blueprint for JHipster
EJS
98
star
27

jhipster-sample-app-ng2

DEPRECATED now that Angular 2+ is the default - This is a sample application created with JHipster, using Angular 2
Java
95
star
28

jhipster-sample-app-vuejs

This is a sample application created with JHipster, with the Vue.js blueprint
Java
91
star
29

react-jhipster

JHipster React library
TypeScript
82
star
30

webflux-jhipster

HTML
69
star
31

jhipster-bom

JHipster BOM and server-side library
Java
68
star
32

generator-jhipster-svelte

Generate Svelte powered JHipster web applications
EJS
61
star
33

jhipster-control-center

Manage your JHipster applications from a single place
TypeScript
59
star
34

jhipster-docker

DO NOT USE - DEPRECATED REPO - Old jdubois/jhipster Docker image, replaced by https://hub.docker.com/r/jhipster/jhipster/
59
star
35

jhipster-loaded

DEPRECATED - Java Agent used by JHipster to hot-reload Java classes
Java
51
star
36

jhipster-sample-app-microservice

This is a sample application created with JHipster, with the Microservice type
Java
50
star
37

jhipster-sample-app-oauth2

This is a sample application created with JHipster, with the OAuth2 option
TypeScript
50
star
38

jhipster-net-sample-app-template

JHipster.NET sample application
C#
49
star
39

jhipster-experimental-microservices

DON'T USE THIS - old experimental repository
Java
45
star
40

jhipster-sample-app-gradle

This is a sample application created with JHipster, with the Gradle option
TypeScript
43
star
41

generator-jhipster-module

DEPRECATED: use https://github.com/jhipster/generator-jhipster instead
EJS
43
star
42

generator-jhipster-native

JavaScript
40
star
43

jhipster-oh-my-zsh-plugin

JHipster plugin for oh-my-zsh
Shell
39
star
44

jhipster-sample-app-elasticsearch

This is a sample application created with JHipster, using ElasticSearch
TypeScript
39
star
45

jhipster-sample-app-dotnetcore

This is a sample .NET application created with the JHipster .NET blueprint
TypeScript
39
star
46

jhipster-sample-app-nodejs

This is a sample application created with NodeJS JHipster Official Blueprint (NHipster)
TypeScript
38
star
47

jhipster-sample-app-gateway

This is a sample application created with JHipster, with the Gateway type
TypeScript
37
star
48

generator-jhipster-blueprint

DEPRECATED: use https://github.com/jhipster/generator-jhipster instead
JavaScript
35
star
49

jhipster-app

The JHipster App lives in the menu bar, and helps running the most usual JHipster tasks
JavaScript
33
star
50

cn

中文官方版本, 由社区维护
JavaScript
30
star
51

consul-config-loader

A small docker based tool to load Spring Boot property files into Consul's K/V Store
Shell
29
star
52

jhipster-sample-app-quarkus

JHipster on Quarkus
TypeScript
27
star
53

jhipster-sample-app-mongodb

This is a sample application created with JHipster, with the MongoDB option
TypeScript
26
star
54

devoxx-2016

Code developed live during Devoxx 2016: video is at https://www.youtube.com/watch?v=dzdjP3CPOCs and slides are at http://www.slideshare.net/julien.dubois/devoxx-being-productive-with-jhipster
Java
25
star
55

chevrotain-java

A javascript based java parser based on chevrotain
JavaScript
25
star
56

jhipster-sample-app-hazelcast

This is a sample application created with JHipster, with the Hazelcast option
TypeScript
24
star
57

jhipster-sample-app-websocket

This is a sample application created with JHipster, with the Websocket option
TypeScript
24
star
58

jhipster-sample-app-micronaut

[WORK IN PROGRESS] JHipster on Micronaut
Java
23
star
59

jhipster-sample-app-token

DEPRECATED as JWT is now the default option - this is a sample application created with JHipster, with the JWT authentication option
Java
22
star
60

jhipster-sample-app-dto

This is a sample application created with JHipster, using DTOs
TypeScript
21
star
61

jhipster-go

GoHipster: A JHipster blueprint that will provide Golang as the server side language
JavaScript
20
star
62

jhipster-artwork

All artwork related to JHipster
18
star
63

jhipster-registry-sample-config

Sample Spring Cloud Config repository for the JHipster Registry
18
star
64

jhipster-dashboard

Hystrix dashboard for JHipster microservices architecture
Shell
16
star
65

jhipster-bot

Bot for creating JHipster applications
JavaScript
15
star
66

jhipster-sample-app-kotlin

This is a sample application created with JHipster, with the Kotlin blueprint
Kotlin
14
star
67

jhipster-docker-hub

docker-compose files using images from JHipster organization at Docker Hub
Shell
14
star
68

jhipster-sample-app-cassandra

This is a sample application created with JHipster, with the Cassandra option
TypeScript
13
star
69

jhipster-openid-connect

WORK IN PROGRESS - DO NOT USE YET - JHipster OpenID Connect server, based on CloudFoundry UAA
13
star
70

jhipster-operator

Java
12
star
71

jhipster-ansible

Ansible role for managing releases
HTML
12
star
72

generator-jhipster-docker-compose

DO NOT USE THIS REPO - it's now a sub-generator in the main generator-jhipster project
JavaScript
12
star
73

jhipster-sample-app-svelte

This is a sample application created with JHipster Svelte blueprint
Java
10
star
74

jhipster-automated-samples

Automatically generate the JHipster sample applications
Shell
10
star
75

jhipster-sample-app-nodejs-oauth2

This is a sample application created with NodeJS JHipster Official Blueprint (NHipster), with OAuth2 and the React option
TypeScript
9
star
76

jhipster-dependencies

DEPRECATED - Maven BOM for all JHipster projects
Shell
9
star
77

jhipster-lite-sample-app

This is a sample application created with JHipster Lite
Java
9
star
78

generator-jhipster-jooq

JHipster blueprint for jOOQ support
JavaScript
8
star
79

jhipster-fisher-plugin

A fisher plug-in for JHipster
Shell
8
star
80

jhipster-neo4j-app

Sample JHipster application forked to use Neo4J
Java
8
star
81

eslint-config-jhipster

JavaScript
8
star
82

jhipster-sample-app-ng1

DEPRECATED as AngularJS 1.X support is removed in JHipster 5 - This is a sample application created with JHipster, using AngularJS 1.x
Java
8
star
83

jhipster-net

Core library for JHipster.NET
C#
7
star
84

jhipster-dotnet

C#
7
star
85

jhipster-sample-app-java7

DEPRECATED as Java 7 is deprecated on JHipster
Java
7
star
86

jhipster-php

[work in progress] PHP implementation for JHipster
Java
7
star
87

hipslacker

A Slack bot for JHipster
Python
7
star
88

jhipster-ci-stack

DO NOT USE - UNDER DEVELOPMENT Official Docker continuous integration agent image
7
star
89

jhipster-sample-app-nocache

This is a sample application created with JHipster, without using a 2nd level cache
TypeScript
6
star
90

jhipster-registry-buildpack

A buildpack for the JHipster Registry
Shell
5
star
91

jhipster-sample-app-couchbase

This is a sample application created with JHipster, with the Couchbase option
TypeScript
4
star
92

jhipster-sample-app-blazor

Blazor front-end for JHipster .NET Core
C#
4
star
93

jhipster-code

Website for JHipster Code
JavaScript
4
star
94

jhipster-sample-app-noi18n

This is a sample application created with JHipster, without using i18n
TypeScript
4
star
95

documentation-archive

Archive for old JHipster documentation
HTML
3
star
96

jhipster-sample-app-golang

A sample application for go blueprint
3
star
97

jhipster-sample-app-nodejs-vuejs

This is a sample application created with NodeJS JHipster Official Blueprint (NHipster), with MongoDB and the Vue.js option
TypeScript
3
star
98

.github

Maintains all of the default policies for the JHipster organization
2
star
99

jhipster-sample-application

Java
2
star
100

jhipster-base

Shared data between JHipster dependent modules such like JH Core and JH IDE
Shell
2
star