2025-01-23 11:10:23 +01:00
|
|
|
# SwisssignChallengeUi
|
|
|
|
|
|
|
|
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.1.4.
|
|
|
|
|
|
|
|
## Development server
|
|
|
|
|
|
|
|
To start a local development server, run:
|
|
|
|
|
|
|
|
```bash
|
2025-01-31 08:08:15 +01:00
|
|
|
# force is needed for Tailwind
|
|
|
|
npm i --force
|
2025-01-23 11:10:23 +01:00
|
|
|
ng serve
|
|
|
|
```
|
|
|
|
|
2025-01-29 18:15:23 +01:00
|
|
|
## Generate code after API changes
|
2025-01-23 11:10:23 +01:00
|
|
|
|
2025-01-29 18:15:23 +01:00
|
|
|
When the API is changed, the client source code must be regenerated.
|
2025-01-23 11:10:23 +01:00
|
|
|
|
2025-01-29 18:15:23 +01:00
|
|
|
1. Install the CLI `npm install -g @openapitools/openapi-generator-cli`
|
|
|
|
1. Download the latest OpenAPI spec file from the API repository. **Please don't commit it!**
|
|
|
|
1. Run `openapi-generator-cli generate -i [path_to_openapi.yml] -g typescript-angular -o src/gen/`. **Commit those changes**
|