Skip to content

Commit d3b1785

Browse files
authored
Merge pull request #30 from arosha-w/isira
Implement crime evidence file upload and download in Supabase
2 parents ef74b74 + 868697a commit d3b1785

12 files changed

Lines changed: 494 additions & 173 deletions

File tree

.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,12 @@ DB_PASSWORD=your-password
88

99
# Server Configuration
1010
SERVER_PORT=8080
11+
12+
# JWT Configuration
13+
JWT_SECRET=secret_key
14+
JWT_EXPIRATION=
15+
REFRESH_TOKEN_EXPIRATION=
16+
17+
# Supabase Configurations
18+
SUPABASE_URL=
19+
SUPABASE_SERVICE_KEY=

pom.xml

Lines changed: 181 additions & 157 deletions
Original file line numberDiff line numberDiff line change
@@ -1,161 +1,185 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<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>3.5.8</version>
9-
<relativePath/> <!-- lookup parent from repository -->
10-
</parent>
11-
<groupId>com.crimeLink</groupId>
12-
<artifactId>analyzer</artifactId>
13-
<version>0.0.1-SNAPSHOT</version>
14-
<name>analyzer</name>
15-
<description>Demo project for Spring Boot</description>
16-
<url/>
17-
<licenses>
18-
<license/>
19-
</licenses>
20-
<developers>
21-
<developer/>
22-
</developers>
23-
<scm>
24-
<connection/>
25-
<developerConnection/>
26-
<tag/>
27-
<url/>
28-
</scm>
29-
<properties>
30-
<java.version>21</java.version>
31-
</properties>
32-
<dependencies>
33-
<dependency>
34-
<groupId>org.springframework.boot</groupId>
35-
<artifactId>spring-boot-starter-web</artifactId>
36-
</dependency>
37-
38-
<dependency>
39-
<groupId>org.springframework.boot</groupId>
40-
<artifactId>spring-boot-starter-data-jpa</artifactId>
41-
</dependency>
42-
43-
<dependency>
44-
<groupId>com.h2database</groupId>
45-
<artifactId>h2</artifactId>
46-
<scope>runtime</scope>
47-
</dependency>
48-
49-
<dependency>
50-
<groupId>org.postgresql</groupId>
51-
<artifactId>postgresql</artifactId>
52-
<scope>runtime</scope>
53-
</dependency>
54-
55-
<dependency>
56-
<groupId>me.paulschwarz</groupId>
57-
<artifactId>spring-dotenv</artifactId>
58-
<version>4.0.0</version>
59-
</dependency>
60-
61-
<dependency>
62-
<groupId>org.springframework.boot</groupId>
63-
<artifactId>spring-boot-starter-security</artifactId>
64-
</dependency>
65-
66-
<dependency>
67-
<groupId>io.jsonwebtoken</groupId>
68-
<artifactId>jjwt-api</artifactId>
69-
<version>0.12.5</version>
70-
</dependency>
71-
72-
<dependency>
73-
<groupId>org.springframework.boot</groupId>
74-
<artifactId>spring-boot-starter-validation</artifactId>
75-
</dependency>
76-
77-
<dependency>
78-
<groupId>io.jsonwebtoken</groupId>
79-
<artifactId>jjwt-impl</artifactId>
80-
<version>0.12.5</version>
81-
<scope>runtime</scope>
82-
</dependency>
83-
84-
<dependency>
85-
<groupId>io.jsonwebtoken</groupId>
86-
<artifactId>jjwt-jackson</artifactId>
87-
<version>0.12.5</version>
88-
<scope>runtime</scope>
89-
</dependency>
90-
91-
<dependency>
92-
<groupId>org.springframework.boot</groupId>
93-
<artifactId>spring-boot-devtools</artifactId>
94-
<scope>runtime</scope>
95-
<optional>true</optional>
96-
</dependency>
97-
98-
<dependency>
99-
<groupId>org.springframework.boot</groupId>
100-
<artifactId>spring-boot-configuration-processor</artifactId>
101-
<optional>true</optional>
102-
</dependency>
103-
104-
<dependency>
105-
<groupId>org.projectlombok</groupId>
106-
<artifactId>lombok</artifactId>
107-
<optional>true</optional>
108-
</dependency>
109-
110-
<dependency>
111-
<groupId>org.springframework.boot</groupId>
112-
<artifactId>spring-boot-starter-test</artifactId>
113-
<scope>test</scope>
114-
</dependency>
115-
116-
<dependency>
117-
<groupId>com.github.librepdf</groupId>
118-
<artifactId>openpdf</artifactId>
119-
<version>1.3.40</version>
120-
</dependency>
121-
122-
123-
124-
</dependencies>
125-
126-
<build>
127-
<plugins>
128-
<plugin>
129-
<groupId>org.springframework.boot</groupId>
130-
<artifactId>spring-boot-maven-plugin</artifactId>
131-
<configuration>
132-
<excludes>
133-
<exclude>
134-
<groupId>org.projectlombok</groupId>
135-
<artifactId>lombok</artifactId>
136-
</exclude>
137-
</excludes>
138-
</configuration>
139-
</plugin>
140-
<plugin>
141-
<groupId>org.apache.maven.plugins</groupId>
142-
<artifactId>maven-compiler-plugin</artifactId>
143-
<configuration>
144-
<annotationProcessorPaths>
145-
<path>
146-
<groupId>org.projectlombok</groupId>
147-
<artifactId>lombok</artifactId>
148-
<version>1.18.34</version>
149-
</path>
150-
<path>
151-
<groupId>org.springframework.boot</groupId>
152-
<artifactId>spring-boot-configuration-processor</artifactId>
153-
<version>3.5.8</version>
154-
</path>
155-
</annotationProcessorPaths>
156-
</configuration>
157-
</plugin>
158-
</plugins>
159-
</build>
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>3.5.8</version>
9+
<relativePath/> <!-- lookup parent from repository -->
10+
</parent>
11+
<groupId>com.crimeLink</groupId>
12+
<artifactId>analyzer</artifactId>
13+
<version>0.0.1-SNAPSHOT</version>
14+
<name>analyzer</name>
15+
<description>Demo project for Spring Boot</description>
16+
<url/>
17+
<licenses>
18+
<license/>
19+
</licenses>
20+
<developers>
21+
<developer/>
22+
</developers>
23+
<scm>
24+
<connection/>
25+
<developerConnection/>
26+
<tag/>
27+
<url/>
28+
</scm>
29+
<properties>
30+
<java.version>21</java.version>
31+
</properties>
32+
<dependencies>
33+
<dependency>
34+
<groupId>org.springframework.boot</groupId>
35+
<artifactId>spring-boot-starter-web</artifactId>
36+
</dependency>
37+
38+
<dependency>
39+
<groupId>org.springframework.boot</groupId>
40+
<artifactId>spring-boot-starter-data-jpa</artifactId>
41+
</dependency>
42+
43+
<dependency>
44+
<groupId>com.h2database</groupId>
45+
<artifactId>h2</artifactId>
46+
<scope>runtime</scope>
47+
</dependency>
48+
49+
<dependency>
50+
<groupId>org.postgresql</groupId>
51+
<artifactId>postgresql</artifactId>
52+
<scope>runtime</scope>
53+
</dependency>
54+
55+
<dependency>
56+
<groupId>me.paulschwarz</groupId>
57+
<artifactId>spring-dotenv</artifactId>
58+
<version>4.0.0</version>
59+
</dependency>
60+
61+
<dependency>
62+
<groupId>org.springframework.boot</groupId>
63+
<artifactId>spring-boot-starter-security</artifactId>
64+
</dependency>
65+
66+
<dependency>
67+
<groupId>io.jsonwebtoken</groupId>
68+
<artifactId>jjwt-api</artifactId>
69+
<version>0.12.5</version>
70+
</dependency>
71+
72+
<dependency>
73+
<groupId>org.springframework.boot</groupId>
74+
<artifactId>spring-boot-starter-validation</artifactId>
75+
</dependency>
76+
77+
<dependency>
78+
<groupId>org.springframework.boot</groupId>
79+
<artifactId>spring-boot-starter-json</artifactId>
80+
</dependency>
81+
82+
<dependency>
83+
<groupId>io.jsonwebtoken</groupId>
84+
<artifactId>jjwt-impl</artifactId>
85+
<version>0.12.5</version>
86+
<scope>runtime</scope>
87+
</dependency>
88+
89+
<dependency>
90+
<groupId>io.jsonwebtoken</groupId>
91+
<artifactId>jjwt-jackson</artifactId>
92+
<version>0.12.5</version>
93+
<scope>runtime</scope>
94+
</dependency>
95+
96+
<dependency>
97+
<groupId>org.springframework.boot</groupId>
98+
<artifactId>spring-boot-devtools</artifactId>
99+
<scope>runtime</scope>
100+
<optional>true</optional>
101+
</dependency>
102+
103+
<dependency>
104+
<groupId>org.springframework.boot</groupId>
105+
<artifactId>spring-boot-configuration-processor</artifactId>
106+
<optional>true</optional>
107+
</dependency>
108+
109+
<dependency>
110+
<groupId>org.projectlombok</groupId>
111+
<artifactId>lombok</artifactId>
112+
<optional>true</optional>
113+
</dependency>
114+
115+
<dependency>
116+
<groupId>org.springframework.boot</groupId>
117+
<artifactId>spring-boot-starter-test</artifactId>
118+
<scope>test</scope>
119+
</dependency>
120+
121+
<dependency>
122+
<groupId>com.github.librepdf</groupId>
123+
<artifactId>openpdf</artifactId>
124+
<version>1.3.40</version>
125+
</dependency>
126+
127+
128+
129+
</dependencies>
130+
131+
<build>
132+
<plugins>
133+
<plugin>
134+
<groupId>org.springframework.boot</groupId>
135+
<artifactId>spring-boot-maven-plugin</artifactId>
136+
<configuration>
137+
<excludes>
138+
<exclude>
139+
<groupId>org.projectlombok</groupId>
140+
<artifactId>lombok</artifactId>
141+
</exclude>
142+
</excludes>
143+
</configuration>
144+
</plugin>
145+
<plugin>
146+
<groupId>org.apache.maven.plugins</groupId>
147+
<artifactId>maven-compiler-plugin</artifactId>
148+
<configuration>
149+
<annotationProcessorPaths>
150+
<path>
151+
<groupId>org.projectlombok</groupId>
152+
<artifactId>lombok</artifactId>
153+
<version>1.18.34</version>
154+
</path>
155+
<path>
156+
<groupId>org.springframework.boot</groupId>
157+
<artifactId>spring-boot-configuration-processor</artifactId>
158+
<version>3.5.8</version>
159+
</path>
160+
</annotationProcessorPaths>
161+
</configuration>
162+
</plugin>
163+
<plugin>
164+
<groupId>org.codehaus.mojo</groupId>
165+
<artifactId>build-helper-maven-plugin</artifactId>
166+
<version>3.5.0</version>
167+
<executions>
168+
<execution>
169+
<id>add-source</id>
170+
<phase>generate-test-sources</phase>
171+
<goals>
172+
<goal>add-test-source</goal>
173+
</goals>
174+
<configuration>
175+
<sources>
176+
<source>src/main/java</source>
177+
</sources>
178+
</configuration>
179+
</execution>
180+
</executions>
181+
</plugin>
182+
</plugins>
183+
</build>
160184

161185
</project>

0 commit comments

Comments
 (0)