Skip to content
This repository was archived by the owner on Oct 25, 2019. It is now read-only.

Commit 221da96

Browse files
author
Hugo BANNIER
committed
Correction bug de docker-compose
1 parent 8864099 commit 221da96

File tree

6 files changed

+20
-9
lines changed

6 files changed

+20
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# VideoGen
22

33
## Binômes
4-
* Gwénolé LE HENAF
4+
* Gwénolé LE HENAFF
55
* Hugo BANNIER
66

77
## Technologies

back/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@ ADD ./target/back-*.jar /VideoGen.jar
99
# on ouvre le port 8080 vers l'extérieur
1010
EXPOSE 8080
1111

12+
# le répertoire du videogen
13+
VOLUME /tmp/videogen_dir
14+
1215
# on lance l'app
1316
ENTRYPOINT exec java -jar /VideoGen.jar

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ services:
1414
build: back/
1515
expose:
1616
- "8080"
17+
volumes:
18+
- ./back/src/test/resources/videogen:/tmp/videogen_dir
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
<p>
2-
configurator works!
3-
</p>
1+
<div *ngIf="generator">
2+
3+
4+
</div>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
import {Component, OnInit} from '@angular/core';
22
import {VideoService} from "../../service/video.service";
3+
import {Video} from '../dto/video';
34

45
@Component({
56
selector: 'app-configurator',
67
templateUrl: './configurator.component.html',
78
styleUrls: ['./configurator.component.scss']
89
})
910
export class ConfiguratorComponent implements OnInit {
11+
generator?: Array<Array<Video>>;
1012

11-
constructor(
12-
private readonly videoService: VideoService
13-
) {
13+
constructor(private readonly videoService: VideoService) {
1414
}
1515

1616
ngOnInit() {
17-
// this.videoService.getVideoGen()
18-
// .then(it => console.log('TODO preparer forumlaire', it));
17+
this.videoService.getConfigurator()
18+
.then(it => this.generator = it);
1919
}
2020

2121
}

front/src/app/accueil/dto/video.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export class Video {
2+
constructor(public readonly name: String, public readonly optionnel: boolean){
3+
4+
}
5+
}

0 commit comments

Comments
 (0)