Git Product home page Git Product logo

generator-jhipster-nodejs's Introduction

JHipster BOM and server-side library - DEPRECATED

Angular Build Status React Build Status Vue Build Status Webflux Build Status Azure DevOps Build Status Maven Central

Full documentation and information is available on our website at https://www.jhipster.tech/

This project is used by the JHipster generator. This is the Bill of Materials and server-side library:

  • jhipster-dependencies
  • jhipster-framework

If the current version is SNAPSHOT then to use this SNAPSHOT version:

  • clone this project
  • run ./mvnw clean install -Dgpg.skip=true, on Windows run .\mvnw.cmd clean install -D"gpg.skip=true"

Analysis of the JHipster server-side parent POM project

sonar-quality-gate sonar-coverage sonar-bugs sonar-vulnerabilities

generator-jhipster-nodejs's People

Contributors

aragonbn90 avatar basemelsayed21 avatar danielfran avatar dependabot[bot] avatar glutengo avatar gmarziou avatar hadirsa avatar ivangsa avatar jdubois avatar jeffevargasp avatar jhipster-bot avatar luancarlos avatar mshima avatar noahmarconi avatar pascalgrimaud avatar php-coder avatar rajpratik71 avatar rhengles avatar ruddell avatar skmaingi avatar sudharakap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

generator-jhipster-nodejs's Issues

Update README on root folder with new instruction

As the blueprint generates for the microservice or monolithic app new structure, we have to override the standard jhipster README with a new that explains the instruction to run the app:

For dev: mvnw package -Pdev

And for prod:

For dev: mvnw package -Pprod

@hadirsa would you resolve this issue? Thanks

Replace maven pom.xml (with JAVA requirement to run it) with a simple node script to manage profiles

Hi all,
as @gmarziou and @mraible have indicated, we can replace the maven tool with a simple node script to manage running and building profiles (dev or prod), and in future other profiles (as example CI/CD and so on). In a standard jhipster app, only for a monolithic app with the client there is the maven frontend plugin to install and manage node/npm version, but in this blueprint, that is mandatory to have nodejs also for backend, we can avoid to use it, and add only a constraint of a nodejs minimum version, according the client and server requirement. This mean reason is explainable, as said @mraible here, the target is a common nodejs developer. Do you agree? thanks for the attention.

Support blob types for the entity

i added my jdl ImageBlog but it tells me that image Is not Support mysql database

could you please fix that error or is their any other way to use image field ?

Remove CLI and use jhipster CLI

Lets not use a separate CLI here. Blueprints should use jhipster cli and specify the blueprint name so that when we get multiple blueprint working we can interop without issues. Also it avoids fragmentation

Unable to create new project

Describe the bug
Already run the command "npm install -g generator-jhipster-nodejs" but got error when run "jhipster --blueprint nodejs"

  throw er; // Unhandled 'error' event
  ^

Error: The ←[33mgenerator-jhipster-nodejs←[39m blueprint provided is not installed. Please install it using command ←[33mnpm i -g generator-jhipster-nodejs←[39m.
at Environment.error

i can't start the server

i can't run project i have generate i think their is missing port of server but i didn't get that

Screenshot 2019-09-23 at 7 28 10 AM

After choosing Postgres as the production DB the production type in orm.config.ts is set as postgresql and gives an error

Describe the bug
When there is a prompt for the production database and postgresql is chosen this populates orm.config.ts with the prod database type of postgresql at line 28. This value should be postgres as per the value in PostgresConnectioOptions.d.ts

To Reproduce
Steps to reproduce the behavior:
jhipster --blueprint nodejs
choose monolithic
choose postgresql for production database

Expected behavior
value in orm.config.ts should be postgres.

Screenshots
not required

Desktop (please complete the following information):
IOS
Chrome
current as per 26/10/19

Smartphone (please complete the following information):
NA

Additional context
Supplied as required

Uncaught TypeError: Cannot read property 'endsWith' of undefined

Reproduce the error

running Travis build
https://travis-ci.org/hadirsa/generator-jhipster-nodejs/builds/546741512

Link to PR (if any)

#4

  • [ * ] Checking this box is mandatory (this is just to show you read everything)

I get the error below running the build in Travis:


  1) Subgenerator server of nodejs JHipster blueprint
       Sample test
         "before all" hook:
     Uncaught TypeError: Cannot read property 'endsWith' of undefined
      at module.exports.getAngularAppName (node_modules/generator-jhipster/generators/generator-base.js:1586:56)
      at module.exports.configureGlobal (node_modules/generator-jhipster/generators/server/index.js:369:44)
      at Object.<anonymous> (node_modules/generator-jhipster/node_modules/yeoman-generator/lib/index.js:424:27)
      at /home/travis/build/hadirsa/generator-jhipster-nodejs/node_modules/run-async/index.js:25:25
      at new Promise (<anonymous>)
      at /home/travis/build/hadirsa/generator-jhipster-nodejs/node_modules/run-async/index.js:24:19
      at self.env.runLoop.add.completed (node_modules/generator-jhipster/node_modules/yeoman-generator/lib/index.js:425:13)

is this bug or something? @amanganiello90

Official generator files still generated.

Describe the bug
When generating an application (?), the original server files are generated (.java, dockers, etc.) while they shouldn't.

According to the roadmap, there should be a huge clean up of files and start from scratch.

To Reproduce
Generate a new node application.

Expected behavior
No src folder should be generated there as only "dummy.txt" should be generated.

Desktop (please complete the following information):

  • OS: Ubuntu 18.04

(Global) rimraf: command not found

Describe the bug
Following the installation steps (and those for jhipster). I am getting this error:

sh: rimraf: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! [email protected] cleanup: `rimraf target/classes/static/ target/classes/aot`
npm ERR! spawn ENOENT
npm ERR! 

To Reproduce
Steps to reproduce the behavior:

  1. git clone [email protected]:jhipster/generator-jhipster-nodejs.git
  2. cd $_
  3. npm i
  4. npm link .
  5. npm i -g yo
  6. npm i -g generator-jhipster
  7. take /tmp/demo-app
  8. jhipster --blueprint nodejs
  9. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image

Additional context
Either jhipster or this nestjs blueprint assume that the rimraf package is installed globally. However, in the nodejs/javascript community we dont recommend installing such packages globally (for security reasons).

A possible fix for this issue is to install the rimraf package as a dev dependency locally to the project and call the binary from the local ./node_modules.

Avoid in dev startup to reinsert initial users in db

Now there is a server/src/initial-data.load.ts that inserts initial user data (for security) on the server startup. For every reload, 'cause the id primary keys are autogenerated, it reinsert the same data. Find a way to avoid that.

Prod database not added from jdl

Describe the bug
related to #57 in the comment, the prodDatabase is not selected from jdl.

To Reproduce

jhipster import-jdl <my-file.jh> --blueprints nodejs

Expected behavior
The orm.config.ts file must have the prod db and not sqlite.

Add template NestJS for controller and service refactoring DTS JHipster compliant

Refactoring DTS:
-1. Delete entity generator in blueprint

-2. server templates modify:

  • common/interceptors in new client folder
  • security up the common and delete it
  • delete core/users and split as a entity-server generation
  • rename model extension in entity name
  • rename entity.repository extension in repository name

-3. entity-server modify: common, domain, repository, service and controller

-4. rename folder spring-controller and spring-service without spring but nestjs

New pom.xml template without unuseful dependencies

@hadirsa, I can't assign you this issue because you aren't in the jhipster group.
Don't worry, you will be soon :) . So I have moved the activity discussed in gitter from the kanban board and tag you.
For every question feel free to ask me. Thank you very much for your contribution!

Release 1.0.0-alpha.3

For this release, it is needed to update documentation, update new jhipster version, log in prompt, gif, and so on.
The features that will be released (indicated in the CHANGELOG.md) are:

  • Remove Maven, Java and spring requirements (now only pure typescripts and npm packages)
  • TypeORM feature to generate scripts and db automatic migrations (as liquibase style)
  • Full generation with jdl for angular/react client and test CRUD entity operations with dev and prod sql databases
  • More code quality with generator tests and resolved some bugs

add NestJS basic templates

@hadirsa, I can't assign you this issue because you aren't in the jhipster group.
Don't worry, you will be soon :) . So I have moved the activity discussed in gitter from the kanban board and tag you.
For every question feel free to ask me. Thank you very much for your contribution!

Delete unuseful old java questions

With the new structure, the server generator prompts the standard java jhipster question that now are not all supported. So it would be good to override the prompt with only the right questions.

Server part regeneration does not consider yo-rc.json, so it recalls server generator prompt

If you re run generation, only for the server generator it ignores the yo-rc.json, reasking the prompt questions. I have fixed that adding in initialitation phase:

   if(this.applicationType){
                    this.log(
                        chalk.green(
                            "This is an existing project, using the configuration from your .yo-rc.json file \n"+
                               "to re-generate the project...\n"
                        )
                    );
                    // how get serverPort and mongoDatabaseProd....
                    this.existingProject = true;
                }

But now there is the problem that the generators does not read the answers from the yo-rc.json for the server generation (serverPort and mongoDatabaseProd variables). I have tried with the following but it doesn't retrieve parameter:

const configuration = this.getAllJhipsterConfig(this, true);
const mongoDatabaseProd = configuration.get("mongoDatabaseProd")

Entity generator in running phase runs no database configured exception even if the yo-rc.json project file has databaseType with defined value

The entity test is fixed and works, but when I run the entity command from a previous project generated:
jhipster entity foo --blueprint nodejs
It breaks with error:

Error: The entity cannot be generated as the application does not have a database configured! at Environment.error (C:\Users\amanganiello\Desktop\jhipster-projects\generator-jhipster\node_modules\yeoman-environment\lib\environment.js:176:40)

It's strange because the yo-rc.json file project has defined the databaseType with a defined value:

"databaseType": "sql", "devDatabaseType": "h2Memory", "prodDatabaseType": "mysql",

The exception is run from jhipster when databaseType has no value

Consider migrating from TSLint to ESLint for the generated part

Hi, first of, you guys are doing an amazing job!

Is your feature request related to a problem? Please describe.
TSlint is to be deprecated (or already is) in favor of ESLint. And this generator already seems to use ESLint.

Describe the solution you'd like
Using ESLint instead of TSLint, and that includes changes in (not exhaustive I think):

  • the generated package.json file
    • dependencies
    • scripts
  • the TSLint conf files (removal)
  • new ESLint conf files (additions)

Describe alternatives you've considered
Maybe waiting a bit, if all the relevant rules are not yet implemented in ESLint (but I think everything's in order), this may need checking.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.