Giter Club home page Giter Club logo

jhipster-guides's Introduction

JHipster Guides

Learn how to generate and create your own application with JHipster with these free tutorials ! All you need is a Google account and access to https://console.cloud.google.com (free)

Click the button to run the tutorial:

Open in Cloud Shell

Please note that clicking this button will open the Google Cloud Shell in a new tab, clone the repository tutorials and start the tutorial.

We highly recommend you to follow the tutorial in the right order. By following these tutorials, you will create an application named BugTrackerJHipster that is inspired from the famous Ticket Issue system from GitHub.

Google Cloud Shell allows you to display markdown files to act as a tutorial and lends you a shell console hosted on the cloud.

It is possible to follow the tutorials on your local machine, but be aware that the teachme and the cloudshell launch-tutorial -d commands are meant to be used only for Google Cloud Shell.

It should be noted that the tutorials are made to be used in the first place with Google Cloud Shell, that is why we are using absolute path (~), if you are doing this tutorial on your local machine, you can freely choose the directory in which you will generate the application.

To run a particular tutorial, use this command in the Google Cloud Shell, replacing YOUR_TUTORIAL_NAME by the name of the tutorial that you want to do:

teachme ~/jhipster-guides/guides/YOUR_TUTORIAL_NAME.md

If your Google Cloud Shell session expires, you will have to follow the steps in tutorial n°0 again. We've provided a minimal script that installs for you in the utils folder. You just need to run this next command in the Google Cloud Shell:

~/jhipster-guides/utils/setup.sh

jhipster-guides's People

Contributors

danielfran avatar davidlj95 avatar dunglas avatar eddumelendez avatar fodil-a avatar hawkurane avatar jdubois avatar jhipster-bot avatar leifjones avatar nikolamicic21 avatar pascalgrimaud avatar pierrebesson avatar rouche avatar seraphinandrieux avatar shaolans avatar sonialahi 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

jhipster-guides's Issues

Online Guide: ERR_ABORTED 404 in API menu.

When navigating to API in part 05 of the guide, the page doesn't load, i get this in the console.

Every other menu are working ok. Any idea what could cause this?

It really seems like nothing from swagger-ui is deployed. (Or not at the right place?) Applcation tries to fetch them from /swagger-ui/dist/ that directory is empty in target/classes/static/

GET https://8080-dot-3855032-dot-devshell.appspot.com/swagger-ui/dist/lib/marked.js net::ERR_ABORTED 404
index.html:22 GET https://8080-dot-3855032-dot-devshell.appspot.com/swagger-ui/dist/lib/highlight.9.1.0.pack.js net::ERR_ABORTED 404
index.html:21 GET https://8080-dot-3855032-dot-devshell.appspot.com/swagger-ui/dist/swagger-ui.min.js net::ERR_ABORTED 404
index.html:20 GET https://8080-dot-3855032-dot-devshell.appspot.com/swagger-ui/dist/lib/backbone-min.js net::ERR_ABORTED 404
.....
and a lot more

Updating the guides

While doing the back end part of the tutorials, some files seems to have been changed since the 5.8.2 release.

The generated files are also not the same, the tutorial should be updated and a script to install java 11+ might be useful.

cloudshell_open: command not found

Not sure what I'm doing wrong, but when I try to launch the Cloud Shell, I get the prompt about the repository being cloned, but then the terminal stops at:

Welcome to Cloud Shell! Type "help" to get started.
To set your Cloud Platform project in this session use “gcloud config set project [PROJECT_ID]”
xxxx:~$ cloudshell_open --repo_url "https://github.com/jhipster/jhipster-guides.git" --page "editor" --tutorial "guides/00_setting_up_your_environment.md"
-bash: cloudshell_open: command not found
xxxx:~$

There's also no repository clone in my home. My first idea was to replace "cloudshell_open" with "cloudshell open", but that just gives me unrecognized arguments:


xxx:~$ cloudshell open --repo_url "https://github.com/jhipster/jhipster-guides.git" --page "editor" --tutorial "guides/00_setting_up_your_environment.md"
usage: cloudshell [-h]
                  {help,edit-files,edit-file,edit,open,download-files,download-file,download,dl,launch-tutorial,env,aliases}
                  ...
cloudshell: error: unrecognized arguments: --repo_url --page editor --tutorial guides/00_setting_up_your_environment.md

Any idea what I might be doing wrong?

mytickets.components.ts: Import of TicketService and AccountService fail

In the tutorial on 06_editing_front in step 2, running in my own environment, not on cloudshell:

I copy/pasted the code of mytickets.components.ts from the tutorial into the file. Then I got the problem that it could not find the modules "app/entities/ticket" and "app/core" for "TicketService" and "AccountService".

I changed it to "app/entities/ticket/ticket.service" and "app/core/auth/account.service". Now it finds the modules but I got stuck with an error in ngOnInit(), claiming that in line 35 the property "then" does not exist.

I am not familiar with angular and TypeScript. I only try to run the tutorial. Maybe I have wrong versions of angular or any other component?

Relationship with User entity

Hi!

I constantly running into the same problem that it is pretty difficult to add additional properties and relationship to User... Which is quite strange since apps usually are User based. I found tips etc, but all of them are cumbersome. Usually needs to manage it by hands etc... It sucks. Can you maybe provide a very detailed guide how to add props and relationships to the basic jhi user? I think many would find it helpful since a good guide cannot even find online.

My fails so far: added things by hand to user, it worked but it sucks,
After half a year i don't remember how i added anything to the user and i tried to do it by entity sub-generator and my whole jhi user was overwritten and lost all the default props and informations x)

Later on i managed to create relationships with user by using ManyToOne:

relationship ManyToOne {
      UserTransfer{userId} to User
      Investment{userId} to User
}

Which is okay, but this way User wont hold any reference to its children

Thanks

Error importing initial JDL

I'm trying to import the code from the sample JDL, but experience errors. I'm using JHipster 6.5.1

[~/src/BugTrackerJHipster (master) ]
paul-> cat jhipster-dgl.jh 
entity Project {
	name String
}

entity Label {
	label String required minlength(3)
}

entity Ticket {
	title String required,
	description String,
	dueDate LocalDate,
	done Boolean
}

relationship ManyToMany {
	Ticket{label(label)} to Label{ticket}
}

relationship ManyToOne {
	Ticket{project(name)} to Project,
	Ticket{assignedTo(login)} to User{ticket}
}

paginate Ticket with pagination
[~/src/BugTrackerJHipster (master) ]
paul-> jhipster import-jdl jhipster-dgl.jh 
INFO! Using JHipster version installed locally in current project's node_modules
INFO! Executing import-jdl jhipster-dgl.jh
INFO! Options: from-cli: true, inline: 
INFO! Found .yo-rc.json on path. This is an existing app
INFO! The JDL is being parsed.
Error: Can't add invalid relationship. Error: In the Many-to-One relationship from Ticket to User, only unidirectionality is supported, you should either create a bidirectional One-to-Many relationship or remove the injected field in the destination entity instead.
Error while parsing applications and entities from the JDL Error: Can't add invalid relationship. Error: In the Many-to-One relationship from Ticket to User, only unidirectionality is supported, you should either create a bidirectional One-to-Many relationship or remove the injected field in the destination entity instead.
Error: Can't add invalid relationship. Error: In the Many-to-One relationship from Ticket to User, only unidirectionality is supported, you should either create a bidirectional One-to-Many relationship or remove the injected field in the destination entity instead.
    at ValidatedJDLObject.addRelationship (/Users/paul/src/BugTrackerJHipster/node_modules/jhipster-core/lib/core/validated_jdl_object.js:102:13)
    at fillAssociations (/Users/paul/src/BugTrackerJHipster/node_modules/jhipster-core/lib/parsers/document_parser.js:289:15)
    at Object.parseFromConfigurationObject (/Users/paul/src/BugTrackerJHipster/node_modules/jhipster-core/lib/parsers/document_parser.js:67:3)
    at getJDLObject (/Users/paul/src/BugTrackerJHipster/node_modules/jhipster-core/lib/jdl/jdl_importer.js:110:25)
    at Object.import (/Users/paul/src/BugTrackerJHipster/node_modules/jhipster-core/lib/jdl/jdl_importer.js:88:25)
    at JDLProcessor.importJDL (/Users/paul/src/BugTrackerJHipster/node_modules/generator-jhipster/cli/import-jdl.js:70:41)
    at JDLProcessor.importJDL (/Users/paul/src/BugTrackerJHipster/node_modules/generator-jhipster/cli/import-jdl.js:298:38)
    at module.exports (/Users/paul/src/BugTrackerJHipster/node_modules/generator-jhipster/cli/import-jdl.js:465:21)
    at Command.<anonymous> (/Users/paul/src/BugTrackerJHipster/node_modules/generator-jhipster/cli/cli.js:71:36)
    at Command.listener (/Users/paul/src/BugTrackerJHipster/node_modules/generator-jhipster/node_modules/commander/index.js:315:8)

02_continuous_integration.md not fully displayed

02_continuous_integration.md stops rendering its text when it comes to section '## GitHub'. If you change it to '### GitHub' and the following section '## GitHub Actions' to '#### GitHub Actions' it is displayed completely. This is fatal as the next chapter cannot be started.

00. Absolute Path

In 00_setting_up_your_environment.md , when the user runs on localhost, please do not use absolute path ~ .
However on GCS, it makes sense to use absolute path.

ie:

mkdir ~/BugTrackerJHipster
cloudshell launch-tutorial -d ~/jhipster-guides/guides/01_creating_your_application.md;

Remove large files from the repo

Hi guys,

While doing a git pull of the repo, I noticed that you have commited large files to the repo by adding the Gatling jars. This is generally considered a bad practice as it becomes really slow to clone the repository. So those large files should be removed completely from git history (see this stackoverflow issue)

To install gatling easily, I would recommend adding a shell script, like I did in my demo here :
PierreBesson/microservice-monitoring-tools-in-action-demo/download-gatling.sh

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.