Skip to content

Commit e1ee75b

Browse files
i wrote this in 18 hours
1 parent 5cdc878 commit e1ee75b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1558
-2003
lines changed

.gitignore

+36-97
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,39 @@
1-
### Intellij+all ###
2-
# User-specific stuff
3-
.idea/**/workspace.xml
4-
.idea/**/tasks.xml
5-
.idea/**/usage.statistics.xml
6-
.idea/**/dictionaries
7-
.idea/**/shelf
8-
9-
# AWS User-specific
10-
.idea/**/aws.xml
11-
12-
# Generated files
13-
.idea/**/contentModel.xml
14-
15-
# Sensitive or high-churn files
16-
.idea/**/dataSources/
17-
.idea/**/dataSources.ids
18-
.idea/**/dataSources.local.xml
19-
.idea/**/sqlDataSources.xml
20-
.idea/**/dynamic.xml
21-
.idea/**/uiDesigner.xml
22-
.idea/**/dbnavigator.xml
23-
24-
# Gradle
25-
.idea/**/gradle.xml
26-
.idea/**/libraries
27-
28-
# Gradle and Maven with auto-import
29-
.idea/artifacts
30-
.idea/compiler.xml
31-
.idea/jarRepositories.xml
32-
.idea/modules.xml
33-
.idea/*.iml
34-
.idea/modules
1+
.gradle
2+
build/
3+
!gradle/wrapper/gradle-wrapper.jar
4+
!**/src/main/**/build/
5+
!**/src/test/**/build/
6+
7+
*.db
8+
data/
9+
10+
### STS ###
11+
.apt_generated
12+
.classpath
13+
.factorypath
14+
.project
15+
.settings
16+
.springBeans
17+
.sts4-cache
18+
bin/
19+
!**/src/main/**/bin/
20+
!**/src/test/**/bin/
21+
22+
### IntelliJ IDEA ###
23+
.idea
24+
*.iws
3525
*.iml
3626
*.ipr
37-
38-
# CMake
39-
cmake-build-*/
40-
41-
# Mongo Explorer plugin
42-
.idea/**/mongoSettings.xml
43-
44-
# File-based project format
45-
*.iws
46-
47-
# IntelliJ
4827
out/
49-
50-
# mpeltonen/sbt-idea plugin
51-
.idea_modules/
52-
53-
# JIRA plugin
54-
atlassian-ide-plugin.xml
55-
56-
# Cursive Clojure plugin
57-
.idea/replstate.xml
58-
59-
# SonarLint plugin
60-
.idea/sonarlint/
61-
62-
# Crashlytics plugin (for Android Studio and IntelliJ)
63-
com_crashlytics_export_strings.xml
64-
crashlytics.properties
65-
crashlytics-build.properties
66-
fabric.properties
67-
68-
# Editor-based Rest Client
69-
.idea/httpRequests
70-
71-
# Android studio 3.1+ serialized cache file
72-
.idea/caches/build_file_checksums.ser
73-
74-
### Intellij+all Patch ###
75-
.idea/*
76-
77-
!.idea/codeStyles
78-
!.idea/runConfigurations
79-
80-
### Rust ###
81-
# Generated by Cargo
82-
# will have compiled files and executables
83-
debug/
84-
target/
85-
86-
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
87-
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
88-
Cargo.lock
89-
90-
# These are backup files generated by rustfmt
91-
**/*.rs.bk
92-
93-
# MSVC Windows builds of rustc generate these, which store debugging information
94-
*.pdb
95-
96-
### Local Testing ###
97-
/testing
98-
/docs
99-
config.json
100-
.env
28+
!**/src/main/**/out/
29+
!**/src/test/**/out/
30+
31+
### NetBeans ###
32+
/nbproject/private/
33+
/nbbuild/
34+
/dist/
35+
/nbdist/
36+
/.nb-gradle/
37+
38+
### VS Code ###
39+
.vscode/

Cargo.toml

-36
This file was deleted.

LICENSE

+4-18
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
1-
MIT License
1+
Copyright 2023 PurpurMC
22

3-
Copyright (c) 2022 PurpurMC
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
116

12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
7+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

application.yaml.template

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
spring:
2+
jpa:
3+
show-sql: false
4+
datasource:
5+
url: jdbc:h2:file:{ database_path }
6+
7+
app:
8+
file-storage: { file_storage_path }
9+
auth-token: { auth_token }

build.gradle.kts

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
plugins {
2+
java
3+
id("org.springframework.boot") version "3.1.0"
4+
id("io.spring.dependency-management") version "1.1.0"
5+
}
6+
7+
group = "org.purpurmc"
8+
version = "0.0.1-SNAPSHOT"
9+
java.sourceCompatibility = JavaVersion.VERSION_17
10+
11+
configurations {
12+
compileOnly {
13+
extendsFrom(configurations.annotationProcessor.get())
14+
}
15+
}
16+
17+
repositories {
18+
mavenCentral()
19+
}
20+
21+
dependencies {
22+
implementation("org.springframework.boot:spring-boot-starter-web")
23+
24+
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
25+
implementation("org.flywaydb:flyway-core")
26+
runtimeOnly("com.h2database:h2")
27+
28+
developmentOnly("org.springframework.boot:spring-boot-devtools")
29+
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
30+
}

build.rs

-3
This file was deleted.

gradle/wrapper/gradle-wrapper.jar

59.3 KB
Binary file not shown.
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)