Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
Daniel b75abfd924 minor 2 лет назад
matsen-tool minor 2 лет назад
.gitignore Initial commit (Angular 17 and Bootstrap and Angular Material) 2 лет назад
README.md solved user api call problem 2 лет назад

README.md

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)

Module anlegen

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