From 746c7d493c9f43d1a7edcaca5b12e116638d210d Mon Sep 17 00:00:00 2001 From: Clement Date: Sun, 21 Apr 2024 11:08:56 +0200 Subject: [PATCH 1/2] feat: add open data to dev (#3) Reviewed-on: https://git.lab-ouest.org/Epitech/ratrapage_T-WEB/pulls/3 Co-authored-by: Clement Co-committed-by: Clement --- .gitmodules | 3 +++ bruno/OpenData datatourisme/bruno.json | 5 +++++ .../environments/dev.bru | 3 +++ bruno/OpenData datatourisme/test opendata.bru | 11 +++++++++++ .../test pays de la loire.bru | 15 +++++++++++++++ datatourisme | 1 + docker-compose-dev.yml | 19 +++++++++++++++++++ 7 files changed, 57 insertions(+) create mode 100644 .gitmodules create mode 100644 bruno/OpenData datatourisme/bruno.json create mode 100644 bruno/OpenData datatourisme/environments/dev.bru create mode 100644 bruno/OpenData datatourisme/test opendata.bru create mode 100644 bruno/OpenData datatourisme/test pays de la loire.bru create mode 160000 datatourisme diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..b525b3d --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "datatourisme"] + path = datatourisme + url = https://git.lab-ouest.org/Epitech/fork-open-data-tourism diff --git a/bruno/OpenData datatourisme/bruno.json b/bruno/OpenData datatourisme/bruno.json new file mode 100644 index 0000000..077709e --- /dev/null +++ b/bruno/OpenData datatourisme/bruno.json @@ -0,0 +1,5 @@ +{ + "version": "1", + "name": "OpenData datatourisme", + "type": "collection" +} \ No newline at end of file diff --git a/bruno/OpenData datatourisme/environments/dev.bru b/bruno/OpenData datatourisme/environments/dev.bru new file mode 100644 index 0000000..e9ed20c --- /dev/null +++ b/bruno/OpenData datatourisme/environments/dev.bru @@ -0,0 +1,3 @@ +vars:secret [ + app_key +] diff --git a/bruno/OpenData datatourisme/test opendata.bru b/bruno/OpenData datatourisme/test opendata.bru new file mode 100644 index 0000000..15d74a4 --- /dev/null +++ b/bruno/OpenData datatourisme/test opendata.bru @@ -0,0 +1,11 @@ +meta { + name: test opendata + type: http + seq: 1 +} + +get { + url: https://diffuseur.datatourisme.fr/webservice/adb00e7893763e3196afe9a3da1c9e41/{{app_key}} + body: none + auth: none +} diff --git a/bruno/OpenData datatourisme/test pays de la loire.bru b/bruno/OpenData datatourisme/test pays de la loire.bru new file mode 100644 index 0000000..b3c36f4 --- /dev/null +++ b/bruno/OpenData datatourisme/test pays de la loire.bru @@ -0,0 +1,15 @@ +meta { + name: test pays de la loire + type: graphql + seq: 2 +} + +post { + url: http://localhost:8080 + body: graphql + auth: none +} + +body:graphql { + {poi() {results{dc_identifier rdfs_label}}} +} diff --git a/datatourisme b/datatourisme new file mode 160000 index 0000000..fb594bf --- /dev/null +++ b/datatourisme @@ -0,0 +1 @@ +Subproject commit fb594bfd7c715a891f076750403e3a439b804468 diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index c3fcbde..3a9a9bf 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -8,3 +8,22 @@ services: - ./.pb/pocketbase-hooks:/app/pb_hooks ports: - 3001:8080 + + blazegraph: + image: conjecto/blazegraph:2.1.5 + ports: + - 9999:9999 + environment: + JAVA_OPTS: "-Xms6G -Xmx6G" + volumes: + - ./datatourisme/dataset:/docker-entrypoint-initdb.d + ulimits: + nofile: + soft: 65536 + hard: 65536 + datatourisme: + build: datatourisme/docker + ports: + - "8080:80" + depends_on: + - blazegraph From db493301c81353391870bd0e04cb61fe644a4090 Mon Sep 17 00:00:00 2001 From: Clement Date: Sun, 21 Apr 2024 11:12:53 +0200 Subject: [PATCH 2/2] fix: add submodule to readme (#4) Reviewed-on: https://git.lab-ouest.org/Epitech/ratrapage_T-WEB/pulls/4 Co-authored-by: Clement Co-committed-by: Clement --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f35f9f7..37b1f7a 100644 --- a/README.md +++ b/README.md @@ -1 +1,4 @@ -Original repo : https://git.lab-ouest.org/Epitech/ratrapage_T-WEB \ No newline at end of file +Original repo : https://git.lab-ouest.org/Epitech/ratrapage_T-WEB + + +Submodule repo : https://git.lab-ouest.org/Epitech/fork-open-data-tourism/ \ No newline at end of file