Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit eeb02f4

Browse files
committed
init commit
0 parents  commit eeb02f4

File tree

6 files changed

+172
-0
lines changed

6 files changed

+172
-0
lines changed

.gitignore

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

pom.xml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<parent>
6+
<groupId>org.springframework.boot</groupId>
7+
<artifactId>spring-boot-starter-parent</artifactId>
8+
<version>2.3.4.RELEASE</version>
9+
<relativePath/> <!-- lookup parent from repository -->
10+
</parent>
11+
<groupId>de.filefighter</groupId>
12+
<artifactId>rest</artifactId>
13+
<version>0.0.1-SNAPSHOT</version>
14+
<name>rest</name>
15+
<description>RestApi</description>
16+
17+
<properties>
18+
<java.version>11</java.version>
19+
</properties>
20+
21+
<dependencies>
22+
23+
<dependency>
24+
<groupId>org.projectlombok</groupId>
25+
<artifactId>lombok</artifactId>
26+
<version>LATEST</version>
27+
</dependency>
28+
<dependency>
29+
<groupId>org.springframework.boot</groupId>
30+
<artifactId>spring-boot-starter-web</artifactId>
31+
</dependency>
32+
33+
<dependency>
34+
<groupId>org.springframework.boot</groupId>
35+
<artifactId>spring-boot-starter-data-mongodb</artifactId>
36+
</dependency>
37+
38+
<dependency>
39+
<groupId>io.springfox</groupId>
40+
<artifactId>springfox-boot-starter</artifactId>
41+
<version>3.0.0</version>
42+
</dependency>
43+
44+
<!-- tag::spring-hateoas[] -->
45+
<dependency>
46+
<groupId>org.springframework.boot</groupId>
47+
<artifactId>spring-boot-starter-hateoas</artifactId>
48+
</dependency>
49+
<!-- end::spring-hateoas[] -->
50+
51+
<!-- TESTING -->
52+
<dependency>
53+
<groupId>org.junit.jupiter</groupId>
54+
<artifactId>junit-jupiter</artifactId>
55+
<scope>test</scope>
56+
</dependency>
57+
<dependency>
58+
<groupId>org.mockito</groupId>
59+
<artifactId>mockito-core</artifactId>
60+
<version>3.5.7</version>
61+
</dependency>
62+
<dependency>
63+
<groupId>org.mockito</groupId>
64+
<artifactId>mockito-inline</artifactId>
65+
<version>3.5.5</version>
66+
</dependency>
67+
<dependency>
68+
<groupId>org.jetbrains</groupId>
69+
<artifactId>annotations</artifactId>
70+
<version>20.1.0</version>
71+
</dependency>
72+
<dependency>
73+
<groupId>org.springframework.boot</groupId>
74+
<artifactId>spring-boot-test</artifactId>
75+
<version>2.3.3.RELEASE</version>
76+
<scope>test</scope>
77+
</dependency>
78+
<!-- TESTING -->
79+
80+
</dependencies>
81+
82+
<build>
83+
<plugins>
84+
<plugin>
85+
<groupId>org.springframework.boot</groupId>
86+
<artifactId>spring-boot-maven-plugin</artifactId>
87+
</plugin>
88+
</plugins>
89+
</build>
90+
91+
</project>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package de.filefighter.rest;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
6+
@SpringBootApplication
7+
public class RestApplication {
8+
9+
public static void main(String[] args) {
10+
SpringApplication.run(RestApplication.class, args);
11+
}
12+
13+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
server.servlet.context-path=/
2+
server.port=8080
3+
server.error.whitelabel.enabled=false
4+
5+
#-------------------MONGO---------------
6+
spring.data.mongodb.authentication-database=admin
7+
spring.data.mongodb.database=filefighter
8+
spring.data.mongodb.host=localhost
9+
spring.data.mongodb.port=27017
10+
spring.data.mongodb.username=
11+
spring.data.mongodb.password=
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: "3"
2+
services:
3+
mongo:
4+
image: mongo
5+
container_name: filefighter
6+
environment:
7+
- MONGO_INITDB=filefighter
8+
# - MONGO_INITDB_ROOT_USERNAME=
9+
# - MONGO_INITDB_ROOT_PASSWORD=
10+
ports:
11+
- "27017:27017"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package de.filefighter.rest;
2+
3+
import org.junit.jupiter.api.Test;
4+
import org.springframework.boot.test.context.SpringBootTest;
5+
6+
@SpringBootTest
7+
class RestApplicationTests {
8+
9+
@Test
10+
void contextLoads() {
11+
}
12+
13+
}

0 commit comments

Comments
 (0)