Updated names and paths for template
This commit is contained in:
parent
eaa8b1cd6b
commit
bb50d70cc6
29
README.md
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.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
projectname=oparl-service
|
||||
projectname=template-service
|
||||
projectgroup=de.twomartens
|
||||
projectSourceCompatibility=11
|
||||
org.gradle.daemon=true
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
rootProject.name = projectname
|
||||
|
||||
include 'oparl-server'
|
||||
include 'template-server'
|
||||
|
||||
rootProject.children.each { subproject ->
|
||||
subproject.buildFileName = "${subproject.name}.gradle"
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue