Skip to content

Commit ffeae94

Browse files
committed
feat: first step
1 parent df81828 commit ffeae94

File tree

11 files changed

+524
-0
lines changed

11 files changed

+524
-0
lines changed

backend/.gitignore

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
HELP.md
2+
.gradle
3+
build/
4+
!gradle/wrapper/gradle-wrapper.jar
5+
!**/src/main/**/build/
6+
!**/src/test/**/build/
7+
8+
### STS ###
9+
.apt_generated
10+
.classpath
11+
.factorypath
12+
.project
13+
.settings
14+
.springBeans
15+
.sts4-cache
16+
bin/
17+
!**/src/main/**/bin/
18+
!**/src/test/**/bin/
19+
20+
### IntelliJ IDEA ###
21+
.idea
22+
*.iws
23+
*.iml
24+
*.ipr
25+
out/
26+
!**/src/main/**/out/
27+
!**/src/test/**/out/
28+
29+
### NetBeans ###
30+
/nbproject/private/
31+
/nbbuild/
32+
/dist/
33+
/nbdist/
34+
/.nb-gradle/
35+
36+
### VS Code ###
37+
.vscode/

backend/build.gradle

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/**
2+
* Copyright 2023 Sven Loesekann
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
http://www.apache.org/licenses/LICENSE-2.0
7+
Unless required by applicable law or agreed to in writing, software
8+
distributed under the License is distributed on an "AS IS" BASIS,
9+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
See the License for the specific language governing permissions and
11+
limitations under the License.
12+
*/
13+
plugins {
14+
id 'java'
15+
id 'org.springframework.boot' version '3.1.5'
16+
id 'io.spring.dependency-management' version '1.1.3'
17+
}
18+
19+
group = 'ch.xxx'
20+
version = '0.0.1-SNAPSHOT'
21+
22+
java {
23+
sourceCompatibility = '21'
24+
}
25+
26+
repositories {
27+
mavenCentral()
28+
}
29+
30+
dependencies {
31+
implementation 'org.springframework.boot:spring-boot-starter-actuator'
32+
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
33+
implementation 'org.springframework.boot:spring-boot-starter-security'
34+
implementation 'org.springframework.boot:spring-boot-starter-web'
35+
implementation 'org.liquibase:liquibase-core'
36+
runtimeOnly 'org.postgresql:postgresql'
37+
testImplementation 'org.springframework.boot:spring-boot-starter-test'
38+
testImplementation 'org.springframework.security:spring-security-test'
39+
}
40+
41+
tasks.named('test') {
42+
useJUnitPlatform()
43+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package ch.xxx.aidoclibchat;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
6+
@SpringBootApplication
7+
public class AidocumentlibrarychatApplication {
8+
9+
public static void main(String[] args) {
10+
SpringApplication.run(AidocumentlibrarychatApplication.class, args);
11+
}
12+
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package ch.xxx.aidocumentlibrarychat;
2+
3+
import org.springframework.boot.test.context.SpringBootTest;
4+
5+
@SpringBootTest
6+
class AidocumentlibrarychatApplicationTests {
7+
8+
//@Test
9+
void contextLoads() {
10+
}
11+
12+
}

frontend/build.gradle

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
/**
2+
* Copyright 2023 Sven Loesekann
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
http://www.apache.org/licenses/LICENSE-2.0
7+
Unless required by applicable law or agreed to in writing, software
8+
distributed under the License is distributed on an "AS IS" BASIS,
9+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
See the License for the specific language governing permissions and
11+
limitations under the License.
12+
*/
13+
plugins {
14+
id 'java'
15+
}
16+
17+
group = 'ch.xxx'
18+
version = '0.0.1-SNAPSHOT'
19+
20+
task cleanAngular {
21+
if(project.hasProperty('withAngular')) {
22+
logger.info('Task cleanAngular')
23+
delete('src/angular/node_modules')
24+
}
25+
}
26+
27+
task buildAngular {
28+
if(project.hasProperty('withAngular')) {
29+
exec {
30+
logger.info('Task buildAngular - npm install')
31+
workingDir 'src/angular'
32+
if (System.getProperty("os.name").toUpperCase().contains("WINDOWS")){
33+
commandLine('npm.cmd', 'install')
34+
} else {
35+
commandLine('npm', 'install')
36+
}
37+
}
38+
exec {
39+
logger.info('Task buildAngular - npm run build')
40+
workingDir 'src/angular'
41+
if (System.getProperty("os.name").toUpperCase().contains("WINDOWS")){
42+
commandLine('npm.cmd', 'run', 'build')
43+
} else {
44+
commandLine('npm', 'run', 'build')
45+
}
46+
}
47+
}
48+
}
49+
50+
task testAngular {
51+
if(project.hasProperty('withAngular')) {
52+
exec {
53+
workingDir 'src/angular'
54+
if (System.getProperty("os.name").toUpperCase().contains("WINDOWS")){
55+
logger.info('Task buildAngular - npm run test')
56+
commandLine('npm.cmd', 'run', 'test')
57+
} else {
58+
if(project.hasProperty("useChromium")) {
59+
logger.info('Task buildAngular - npm run test-chromium')
60+
commandLine('npm', 'run', 'test-chromium')
61+
} else {
62+
logger.info('Task buildAngular - npm run test')
63+
commandLine('npm', 'run', 'test')
64+
}
65+
}
66+
}
67+
}
68+
}

gradle/wrapper/gradle-wrapper.jar

62.2 KB
Binary file not shown.
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)