mirror of
https://github.com/OkaeriPoland/okaeri-timings.git
synced 2026-01-18 03:28:20 +01:00
Create backend skeleton
This commit is contained in:
10
backend/api/build.gradle
Normal file
10
backend/api/build.gradle
Normal file
@@ -0,0 +1,10 @@
|
||||
dependencies {
|
||||
|
||||
implementation project(':dataaccess')
|
||||
|
||||
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-web'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-security'
|
||||
|
||||
implementation 'org.springdoc:springdoc-openapi-ui:1.5.12'
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package eu.okaeri.timings.api;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class TimingsApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(TimingsApplication.class, args);
|
||||
}
|
||||
}
|
||||
39
backend/api/src/main/resources/application.yml
Normal file
39
backend/api/src/main/resources/application.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
server:
|
||||
address: 127.0.0.1
|
||||
port: 8081
|
||||
error:
|
||||
whitelabel:
|
||||
enabled: false
|
||||
servlet:
|
||||
context-path: /
|
||||
# tomcat:
|
||||
# internal-proxies: ""
|
||||
forward-headers-strategy: native
|
||||
|
||||
springdoc:
|
||||
api-docs:
|
||||
path: /api-docs
|
||||
swagger-ui:
|
||||
path: /swagger-ui
|
||||
tags-sorter: alpha
|
||||
operations-sorter: alpha
|
||||
default-produces-media-type: "application/json"
|
||||
|
||||
spring:
|
||||
data:
|
||||
rest:
|
||||
base-path: /rest
|
||||
redis:
|
||||
host: 127.0.0.1
|
||||
port: 6379
|
||||
# password: ""
|
||||
datasource:
|
||||
url: jdbc:h2:file:./timings;AUTO_SERVER=TRUE
|
||||
username: demo
|
||||
password: password
|
||||
driverClassName: org.h2.Driver
|
||||
jpa:
|
||||
hibernate:
|
||||
ddl-auto: update
|
||||
show-sql: true
|
||||
database-platform: org.hibernate.dialect.H2Dialect
|
||||
0
backend/api/src/test/resources/.gitkeep
Normal file
0
backend/api/src/test/resources/.gitkeep
Normal file
Reference in New Issue
Block a user