From 96742ff5d7ef6d24d03cb82d61a8b05c9299a418 Mon Sep 17 00:00:00 2001 From: Mart-7900X3D-PC Date: Fri, 21 Jun 2024 14:43:01 +0200 Subject: [PATCH] Added graphql playground --- .run/RoomradarApplication.run.xml | 10 ++++++++++ compose.yaml | 1 - pom.xml | 17 ++++++----------- src/main/resources/application-local.properties | 3 +++ src/main/resources/application.properties | 1 + src/main/resources/graphql/schema.graphqls | 3 +++ 6 files changed, 23 insertions(+), 12 deletions(-) create mode 100644 .run/RoomradarApplication.run.xml delete mode 100644 compose.yaml create mode 100644 src/main/resources/application-local.properties create mode 100644 src/main/resources/graphql/schema.graphqls diff --git a/.run/RoomradarApplication.run.xml b/.run/RoomradarApplication.run.xml new file mode 100644 index 0000000..33581cd --- /dev/null +++ b/.run/RoomradarApplication.run.xml @@ -0,0 +1,10 @@ + + + + \ No newline at end of file diff --git a/compose.yaml b/compose.yaml deleted file mode 100644 index 0baad47..0000000 --- a/compose.yaml +++ /dev/null @@ -1 +0,0 @@ -services: diff --git a/pom.xml b/pom.xml index 75b903f..e14cec7 100644 --- a/pom.xml +++ b/pom.xml @@ -38,10 +38,6 @@ org.springframework.boot spring-boot-starter-graphql - - org.springframework.boot - spring-boot-starter-security - org.springframework.boot spring-boot-starter-validation @@ -54,13 +50,6 @@ org.springframework.boot spring-boot-starter-webflux - - - org.springframework.boot - spring-boot-docker-compose - runtime - true - org.projectlombok lombok @@ -86,6 +75,12 @@ spring-security-test test + + org.springframework.boot + spring-boot-devtools + runtime + true + diff --git a/src/main/resources/application-local.properties b/src/main/resources/application-local.properties new file mode 100644 index 0000000..69112e9 --- /dev/null +++ b/src/main/resources/application-local.properties @@ -0,0 +1,3 @@ +spring.graphql.graphiql.enabled=true +spring.devtools.restart.poll-interval=2s +spring.devtools.restart.quiet-period=1s \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 47eb9ad..e1fe00c 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1 +1,2 @@ spring.application.name=roomradar +server.error.whitelabel.enabled=false diff --git a/src/main/resources/graphql/schema.graphqls b/src/main/resources/graphql/schema.graphqls new file mode 100644 index 0000000..cbb15dc --- /dev/null +++ b/src/main/resources/graphql/schema.graphqls @@ -0,0 +1,3 @@ +type Query { + test: [String] +}