46 lines
1.3 KiB
Markdown
46 lines
1.3 KiB
Markdown
# manager_app
|
||
|
||
A new Flutter application.
|
||
|
||
## Getting Started
|
||
|
||
This project is a starting point for a Flutter application.
|
||
|
||
A few resources to get you started if this is your first Flutter project:
|
||
|
||
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
|
||
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
|
||
|
||
For help getting started with Flutter, view our
|
||
[online documentation](https://flutter.dev/docs), which offers tutorials,
|
||
samples, guidance on mobile development, and a full API reference.
|
||
|
||
# Ancienne version de generation = Model generation via command line
|
||
|
||
java -cp openapi-generator-cli-5.1.0.jar org.openapitools.codegen.OpenAPIGenerator generate -i swagger.yaml --additional-properties pubName=managerapi -g dart --enable-post-process-file
|
||
|
||
# OPENAPI Generation cmd
|
||
|
||
flutter clean
|
||
|
||
flutter pub get
|
||
|
||
flutter pub run build_runner build --delete-conflicting-outputs
|
||
|
||
Le fichier est dans le projet.
|
||
|
||
# Publication sur docker
|
||
|
||
Avant de build en docker, il faut build en web => flutter build web
|
||
|
||
docker build -t manager-web .
|
||
|
||
Pour tester en local :
|
||
docker run -d -p 8080:80 –name manager-web manager-web
|
||
|
||
Image tag:
|
||
docker image tag manager-web registry.unov.be/mymuseum/manager:version-2.0.0
|
||
|
||
Docker push:
|
||
docker image push registry.unov.be/mymuseum/manager:version-2.0.0
|