Browse Source

Updated names and paths for template

master
Jim Martens 2 years ago
parent
commit
bb50d70cc6
  1. 29
      README.md
  2. 2
      gradle.properties
  3. 2
      settings.gradle
  4. 10
      template-server/src/main/java/de/twomartens/templateservice/TemplateServiceApplication.java
  5. 0
      template-server/src/main/resources/log4j2.xml
  6. 0
      template-server/template-server.gradle

29
README.md

@ -1,3 +1,28 @@
# OParl service
# Instructions for using the template
## Introduction
This template is based upon best practices and uses Spring Boot to implement
REST APIs.
## Steps
* clone the project and create a new repository
* replace all occurences of 'template' with your service name, 'Template' accordingly (mind the cases)
* import the project in your IDE
* run initial `gradlew build`
**============ // todo: Ab hier die Doku überprüfen und ggf. ergänzen ==========**
# Template
**// todo: Hier sollte das Projekt etwas beschrieben werden**
## Git
The repository of ... is located under https://git.2martens.de/2martens/template-service.git
It is partially encrypted with git-crypt and has to be decrypted first:
```bash
git-crypt unlock %USERPROFILE%/.git-crypt-key
```
OParl API interface written with Spring Boot and Open API.

2
gradle.properties

@ -1,4 +1,4 @@
projectname=oparl-service
projectname=template-service
projectgroup=de.twomartens
projectSourceCompatibility=11
org.gradle.daemon=true

2
settings.gradle

@ -1,6 +1,6 @@
rootProject.name = projectname
include 'oparl-server'
include 'template-server'
rootProject.children.each { subproject ->
subproject.buildFileName = "${subproject.name}.gradle"

10
oparl-server/src/main/java/de/twomartens/oparlservice/OParlServiceApplication.java → template-server/src/main/java/de/twomartens/templateservice/TemplateServiceApplication.java

@ -1,4 +1,4 @@
package de.twomartens.oparlservice;
package de.twomartens.templateservice;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
@ -10,20 +10,20 @@ import java.util.Optional;
@Slf4j
@SpringBootApplication
@EnableScheduling
public class OParlServiceApplication {
public class TemplateServiceApplication {
public static void main(String[] args) {
log.info(">>> {}:{} <<<", getTitle(), getVersion());
SpringApplication.run(OParlServiceApplication.class, args);
SpringApplication.run(TemplateServiceApplication.class, args);
}
private static String getTitle() {
return Optional.ofNullable(OParlServiceApplication.class.getPackage().getImplementationTitle())
return Optional.ofNullable(TemplateServiceApplication.class.getPackage().getImplementationTitle())
.orElse("start");
}
private static String getVersion() {
return Optional.ofNullable(OParlServiceApplication.class.getPackage().getImplementationVersion())
return Optional.ofNullable(TemplateServiceApplication.class.getPackage().getImplementationVersion())
.orElse("snapshot");
}
}

0
oparl-server/src/main/resources/log4j2.xml → template-server/src/main/resources/log4j2.xml

0
oparl-server/oparl-server.gradle → template-server/template-server.gradle

Loading…
Cancel
Save