From 5fc86b98e526c37109394298e6a0ca7ba8be5914 Mon Sep 17 00:00:00 2001 From: Claas Date: Wed, 8 Apr 2026 14:43:41 +0000 Subject: [PATCH] Separate server project to create client project --- .devcontainer/devcontainer.json | 3 +- .gitignore | 32 ------------------ HELP.md | 24 -------------- .gitattributes => server/.gitattributes | 0 server/.gitignore | 33 +++++++++++++++++++ mvnw => server/mvnw | 0 mvnw.cmd => server/mvnw.cmd | 0 pom.xml => server/pom.xml | 0 .../java/dev/claas/flat/FlatApplication.java | 0 .../main/resources/application.properties | 0 .../dev/claas/flat/FlatApplicationTests.java | 0 11 files changed, 35 insertions(+), 57 deletions(-) delete mode 100644 HELP.md rename .gitattributes => server/.gitattributes (100%) create mode 100644 server/.gitignore rename mvnw => server/mvnw (100%) rename mvnw.cmd => server/mvnw.cmd (100%) rename pom.xml => server/pom.xml (100%) rename {src => server/src}/main/java/dev/claas/flat/FlatApplication.java (100%) rename {src => server/src}/main/resources/application.properties (100%) rename {src => server/src}/test/java/dev/claas/flat/FlatApplicationTests.java (100%) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 1726c74..817d1f5 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -10,7 +10,8 @@ "version": "none", "installMaven": "true", "installGradle": "false" - } + }, + "ghcr.io/devcontainers-extra/features/pnpm:2": {} } // Use 'forwardPorts' to make a list of ports inside the container available locally. diff --git a/.gitignore b/.gitignore index c7c56d6..496ee2c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,33 +1 @@ -HELP.md -target/ -.mvn/wrapper/maven-wrapper.jar -!**/src/main/**/target/ -!**/src/test/**/target/ - -# STS -.apt_generated -.classpath -.factorypath -.project -.settings -.springBeans -.sts4-cache - -# IntelliJ IDEA -.idea -*.iws -*.iml -*.ipr - -# NetBeans -/nbproject/private/ -/nbbuild/ -/dist/ -/nbdist/ -/.nb-gradle/ -build/ -!**/src/main/**/build/ -!**/src/test/**/build/ - -# MacOS specific .DS_Store \ No newline at end of file diff --git a/HELP.md b/HELP.md deleted file mode 100644 index 7b07f9d..0000000 --- a/HELP.md +++ /dev/null @@ -1,24 +0,0 @@ -# Getting Started - -### Reference Documentation -For further reference, please consider the following sections: - -* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html) -* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/4.0.5/maven-plugin) -* [Create an OCI image](https://docs.spring.io/spring-boot/4.0.5/maven-plugin/build-image.html) -* [Spring Web](https://docs.spring.io/spring-boot/4.0.5/reference/web/servlet.html) - -### Guides -The following guides illustrate how to use some features concretely: - -* [Building a RESTful Web Service](https://spring.io/guides/gs/rest-service/) -* [Serving Web Content with Spring MVC](https://spring.io/guides/gs/serving-web-content/) -* [Building REST services with Spring](https://spring.io/guides/tutorials/rest/) - -### Maven Parent overrides - -Due to Maven's design, elements are inherited from the parent POM to the project POM. -While most of the inheritance is fine, it also inherits unwanted elements like `` and `` from the parent. -To prevent this, the project POM contains empty overrides for these elements. -If you manually switch to a different parent and actually want the inheritance, you need to remove those overrides. - diff --git a/.gitattributes b/server/.gitattributes similarity index 100% rename from .gitattributes rename to server/.gitattributes diff --git a/server/.gitignore b/server/.gitignore new file mode 100644 index 0000000..c7c56d6 --- /dev/null +++ b/server/.gitignore @@ -0,0 +1,33 @@ +HELP.md +target/ +.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +# STS +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +# IntelliJ IDEA +.idea +*.iws +*.iml +*.ipr + +# NetBeans +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +# MacOS specific +.DS_Store \ No newline at end of file diff --git a/mvnw b/server/mvnw similarity index 100% rename from mvnw rename to server/mvnw diff --git a/mvnw.cmd b/server/mvnw.cmd similarity index 100% rename from mvnw.cmd rename to server/mvnw.cmd diff --git a/pom.xml b/server/pom.xml similarity index 100% rename from pom.xml rename to server/pom.xml diff --git a/src/main/java/dev/claas/flat/FlatApplication.java b/server/src/main/java/dev/claas/flat/FlatApplication.java similarity index 100% rename from src/main/java/dev/claas/flat/FlatApplication.java rename to server/src/main/java/dev/claas/flat/FlatApplication.java diff --git a/src/main/resources/application.properties b/server/src/main/resources/application.properties similarity index 100% rename from src/main/resources/application.properties rename to server/src/main/resources/application.properties diff --git a/src/test/java/dev/claas/flat/FlatApplicationTests.java b/server/src/test/java/dev/claas/flat/FlatApplicationTests.java similarity index 100% rename from src/test/java/dev/claas/flat/FlatApplicationTests.java rename to server/src/test/java/dev/claas/flat/FlatApplicationTests.java -- 2.51.2