Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A NodeJS blueprint that creates the backend using NestJS

License

NotificationsYou must be signed in to change notification settings

jhipster/generator-jhipster-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

NPM versionGenerator Build StatusGenerator Angular Samples StatusGenerator React Samples StatusGenerator Vue Samples StatusGenerator Microservice Samples StatusGitterDownloads

generator-jhipster-nodejs, theofficial NodeJS blueprint that usesNestJS TypeScript Framework for yourbackend. We encourage you to use it and give us your feedback.

Notes

For the features of the last release refers toCHANGELOG.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 theJHipster 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. MongoDB support is experimental inTypeORM so is in JHipster NodeJS.
  • The app usesTypeORM 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

Aprevious of a jwt auth app:

Prerequisites

As this is aJHipster 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 theJHipster installation guide and that bothyeoman andjhipster are installed.
  2. Install the package withnpm install -g generator-jhipster-nodejs
  3. And generate the application withnhipster

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:

nhipster

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

✅ General App generation

  • nhipster

✅ JDL model support generation

  • nhipster jdl my_file.jdl

✅ Ci-cd generation

  • nhipster ci-cd

For the last, in thegenerate-sample samples folder andjdl-samples there are some examples of jdl models.

Using Docker

  1. Download the Dockerfile:
mkdir dockercd dockerwget 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 appcd 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 ..$mkdir test-generation$cd test-generation

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

  • nhipster

❤️ For community

Found anissue, check if is already opened or closed, otherwise open a newfeature or bug.

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

Refer for contribution toroadmap or tokanban board.

Any questionsAngelo 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

Packages

No packages published

Contributors24

Languages


[8]ページ先頭

©2009-2025 Movatter.jp