Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Azure/generator-jhipster-azure-spring-apps
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a0878838e6eaf22d6b27ddd8e636207dbdcb3bcd
Choose a base ref
..
head repository: Azure/generator-jhipster-azure-spring-apps
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a0a651bbcc5714b2d82ff37a5b25bf51ae13913a
Choose a head ref
Showing with 840 additions and 318 deletions.
  1. +4 −1 README.md
  2. +7 −10 generators/createtodoapp/generator.mjs
  3. +828 −306 package-lock.json
  4. +1 −1 package.json
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -36,13 +36,16 @@ The following prerequisites are required to use this application. Please ensure
Go to [Jhipster Online](https://start.jhipster.tech/generate-azure-application) and generate your application.

## 🚁 How to run locally

To run the project on the localhost:

- `mvn clean package -DskipTests`
- `java -jar web/target/${artifact-name}-web-0.0.1-SNAPSHOT.jar`

You can also use Maven Wrapper with:

- `chmod +x mvnw`
- `./mvnw spring-boot:run`
- `./mvnw spring-boot:run -f web/pom.xml`

## 🎉 How to deploy on Azure

17 changes: 7 additions & 10 deletions generators/createtodoapp/generator.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import _ from 'lodash';
import chalk from 'chalk';
import BaseGenerator from 'generator-jhipster/generators/base';

@@ -40,15 +41,10 @@ export default class extends BaseGenerator {

const props = await this.prompt(prompts, this.config);

// Make sure all derived properties are loaded
this.loadAppConfig(props);
this.loadDerivedAppConfig(props);
this.loadServerConfig(props);
this.loadDerivedServerConfig(props);
this.loadClientConfig(props);
this.loadDerivedClientConfig(props);
this.loadPlatformConfig(props);
// this.loadTranslationConfig(props);
const baseName = this.jhipsterConfigWithDefaults.baseName;
props.humanizedBaseName = baseName.toLowerCase() === 'jhipster' ? 'JHipster' : _.startCase(baseName);
props.dasherizedBaseName = _.kebabCase(baseName);
props.packageFolder = this.jhipsterConfigWithDefaults.packageFolder;

this.todoAppProps = props;
},
@@ -173,12 +169,13 @@ export default class extends BaseGenerator {
return {
...super.end,
afterRunHook() {
const artifactName = this.todoAppProps.dasherizedBaseName + '-web';
this.log(`
${chalk.greenBright('The TODO template has been created successfully! 🎉')}
${chalk.magentaBright(`Run locally:`)}
${chalk.cyan(` mvn clean package -DskipTests`)}
${chalk.cyan(` java -jar web/target/azure-spring-apps-todo-web-0.0.1-SNAPSHOT.jar`)}
${chalk.cyan(` java -jar web/target/${artifactName}-0.0.1-SNAPSHOT.jar`)}
${chalk.magentaBright(`Deploy on Azure Spring Apps with monthly free grants:`)}
${chalk.cyan(` https://aka.ms/asa/webapp-quickstart`)}
Loading