From: Jacob Casper Date: Sun, 9 Jun 2024 23:41:45 +0000 (-0500) Subject: Refactor to multi-module project for backend client X-Git-Url: https://git.jacobcasper.com/?a=commitdiff_plain;h=8b0789ad76898ef121b8910e49ea80781d7f35fb;p=xiv-graph.git Refactor to multi-module project for backend client --- diff --git a/fflogsclient/pom.xml b/fflogsclient/pom.xml new file mode 100644 index 0000000..8f03f60 --- /dev/null +++ b/fflogsclient/pom.xml @@ -0,0 +1,20 @@ + + + 4.0.0 + + com.jacobcasper + xivgraph + 1.0-SNAPSHOT + + + fflogsclient + + + 22 + 22 + UTF-8 + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index d8bfe52..0c09d7c 100644 --- a/pom.xml +++ b/pom.xml @@ -6,37 +6,43 @@ com.jacobcasper xivgraph + pom 1.0-SNAPSHOT - xivgraph https://www.jacobcasper.com + + fflogsclient + xivgraphrest + + UTF-8 22 22 + 3.3.0 org.springframework.boot spring-boot - 3.3.0 + ${springBootVersion} org.springframework.boot spring-boot-autoconfigure - 3.3.0 + ${springBootVersion} org.springframework.boot spring-boot-starter-thymeleaf - 3.3.0 + ${springBootVersion} org.springframework.boot spring-boot-starter-web - 3.3.0 + ${springBootVersion} junit diff --git a/src/main/java/com/jacobcasper/xivgraph/App.java b/src/main/java/com/jacobcasper/xivgraph/App.java deleted file mode 100644 index 2a718ea..0000000 --- a/src/main/java/com/jacobcasper/xivgraph/App.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.jacobcasper.xivgraph; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; - -@SpringBootApplication -public class App { - public static void main(String... args) { - SpringApplication.run(App.class, args); - } -} diff --git a/src/main/java/com/jacobcasper/xivgraph/controllers/ApiController.java b/src/main/java/com/jacobcasper/xivgraph/controllers/ApiController.java deleted file mode 100644 index 22edac6..0000000 --- a/src/main/java/com/jacobcasper/xivgraph/controllers/ApiController.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.jacobcasper.xivgraph.controllers; - -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.RestController; - -@RestController -public class ApiController { - - @GetMapping("/api") - public Response root() { - return new Response(); - } - - record Response() {} -} diff --git a/src/main/java/com/jacobcasper/xivgraph/controllers/StaticController.java b/src/main/java/com/jacobcasper/xivgraph/controllers/StaticController.java deleted file mode 100644 index 8d741aa..0000000 --- a/src/main/java/com/jacobcasper/xivgraph/controllers/StaticController.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.jacobcasper.xivgraph.controllers; - -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.servlet.view.RedirectView; - -@Controller -public class StaticController { - - @GetMapping("/") - public String root() { - return "index"; - } - - @GetMapping("/index") - public String index() { - return "index"; - } -} diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html deleted file mode 100644 index ed16574..0000000 --- a/src/main/resources/templates/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - XIV Raider Graph - - - -

- - diff --git a/xivgraphrest/pom.xml b/xivgraphrest/pom.xml new file mode 100644 index 0000000..a15abf9 --- /dev/null +++ b/xivgraphrest/pom.xml @@ -0,0 +1,20 @@ + + + 4.0.0 + + com.jacobcasper + xivgraph + 1.0-SNAPSHOT + + + xivgraphrest + + + 22 + 22 + UTF-8 + + + \ No newline at end of file diff --git a/xivgraphrest/src/main/java/com/jacobcasper/xivgraph/App.java b/xivgraphrest/src/main/java/com/jacobcasper/xivgraph/App.java new file mode 100644 index 0000000..2a718ea --- /dev/null +++ b/xivgraphrest/src/main/java/com/jacobcasper/xivgraph/App.java @@ -0,0 +1,11 @@ +package com.jacobcasper.xivgraph; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class App { + public static void main(String... args) { + SpringApplication.run(App.class, args); + } +} diff --git a/xivgraphrest/src/main/java/com/jacobcasper/xivgraph/controllers/ApiController.java b/xivgraphrest/src/main/java/com/jacobcasper/xivgraph/controllers/ApiController.java new file mode 100644 index 0000000..22edac6 --- /dev/null +++ b/xivgraphrest/src/main/java/com/jacobcasper/xivgraph/controllers/ApiController.java @@ -0,0 +1,16 @@ +package com.jacobcasper.xivgraph.controllers; + +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class ApiController { + + @GetMapping("/api") + public Response root() { + return new Response(); + } + + record Response() {} +} diff --git a/xivgraphrest/src/main/java/com/jacobcasper/xivgraph/controllers/StaticController.java b/xivgraphrest/src/main/java/com/jacobcasper/xivgraph/controllers/StaticController.java new file mode 100644 index 0000000..8d741aa --- /dev/null +++ b/xivgraphrest/src/main/java/com/jacobcasper/xivgraph/controllers/StaticController.java @@ -0,0 +1,20 @@ +package com.jacobcasper.xivgraph.controllers; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.servlet.view.RedirectView; + +@Controller +public class StaticController { + + @GetMapping("/") + public String root() { + return "index"; + } + + @GetMapping("/index") + public String index() { + return "index"; + } +} diff --git a/xivgraphrest/src/main/resources/templates/index.html b/xivgraphrest/src/main/resources/templates/index.html new file mode 100644 index 0000000..ed16574 --- /dev/null +++ b/xivgraphrest/src/main/resources/templates/index.html @@ -0,0 +1,10 @@ + + + + XIV Raider Graph + + + +

+ +