Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/1175 delivery service #1200

Merged
merged 2 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions delivery/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.yas</groupId>
<artifactId>yas</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>delivery</artifactId>
<version>${revision}</version>
<name>delivery</name>
<description>YAS Delivery service</description>

<properties>
<sonar.organization>nashtech-garage</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.projectKey>nashtech-garage_yas-delivery</sonar.projectKey>
</properties>

</project>
11 changes: 11 additions & 0 deletions delivery/src/main/java/com/yas/delivery/DeliveryApplication.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.yas.delivery;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class DeliveryApplication {
public static void main(String[] args) {
SpringApplication.run(DeliveryApplication.class, args);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.yas.delivery.controller;

import org.springframework.web.bind.annotation.RestController;

@RestController
public class DeliveryController {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.yas.delivery.service;

import org.springframework.stereotype.Service;

@Service
public class DeliveryService {
}
11 changes: 11 additions & 0 deletions delivery/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
server.servlet.context-path=/delivery
spring.application.name=delivery
logging.pattern.level=%5p [${spring.application.name:},%X{traceId:-},%X{spanId:-}]

# swagger-ui custom path
springdoc.swagger-ui.path=/swagger-ui
springdoc.packagesToScan=com.yas.delivery
springdoc.swagger-ui.oauth.use-pkce-with-authorization-code-grant=true
springdoc.swagger-ui.oauth.client-id=swagger-ui
springdoc.oauthflow.authorization-url=http://identity/realms/Yas/protocol/openid-connect/auth
springdoc.oauthflow.token-url=http://identity/realms/Yas/protocol/openid-connect/token
27 changes: 27 additions & 0 deletions delivery/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<property name="ENCODING" value="UTF-8" />
<property name="LOG_LEVEL" value="DEBUG" />
<include
resource="org/springframework/boot/logging/logback/base.xml" />
<springProperty scope="context" name="appName"
source="spring.application.name" />
<!-- Reuse the log from Spring -->
<include
resource="org/springframework/boot/logging/logback/defaults.xml" />
<include
resource="org/springframework/boot/logging/logback/console-appender.xml" />

<appender name="CONSOLE"
class="ch.qos.logback.core.ConsoleAppender">
<Target>${user-system}.out</Target>
<encoder>
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
<charset>${ENCODING}</charset>
</encoder>
</appender>

<root level="INFO">
<appender-ref ref="CONSOLE" />
</root>
</configuration>
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
<module>webhook</module>
<module>sampledata</module>
<module>recommendation</module>
<module>delivery</module>
</modules>

<properties>
Expand Down
Loading