You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1.7 KiB

matsen-tool-fe

BEFORE Installation:

  • npm -v (minimum is 8.0.0)
  • node --version (minimum is 20.9.0)
  • brew upgrade node
  • npm install

Installation

  • npm i -g @angular/cli

Only once

  • ng new matsen-tool --no-standalone

    • Standalone is now the new default in v17 (no app.module.ts)
  • cd matsen-tool -> ng serve

Install Bootstrap

  • cd matsen-tool
  • npm i bootstrap @popperjs/core --save
  • npm install bootstrap-icons

Install Angular Material

  • cd matsen-tool
  • ng add @angular/material

Generate Dummy data

  • cd matsen-tool
  • npm i @openapitools/openapi-generator-cli -D
  • package.json: Scripts block:
    • “generate:api”: “openapi-generator-cli generate -i ./openapi.yaml -g typescript-angular -o src/app/core/api/v1 -p=removeOperationIdPrefix=true”
  • Java must be installed
  • cd matsen-tool

Generate services from openapi.yaml

  • run sh generateApi.sh
  • (npm run generate:api
    • Wenn es nicht geht: brew install java
    • sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
    • java -version)
    • ACHTUNG: In Datei src/app/core/api/v1/model/partnerJsonId.ts diese zwei Zeilen löschen:
      • readonly type?: string;

Module anlegen

  • cd app
  • ng g m registration --route register --module app.module

Install for autogeneration of forms:

  • brew install jq