-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from MathisBurger/dev-v1.1
Release v1.1
- Loading branch information
Showing
51 changed files
with
1,341 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Pull Request | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 20 | ||
- name: Install web dependencies | ||
run: | | ||
cd web | ||
npm ci | ||
- name: Lint | ||
run: | | ||
cd web | ||
npm run lint | ||
build: | ||
runs-on: ubuntu-latest | ||
services: | ||
postgres: | ||
image: postgres | ||
# Provide the password for postgres | ||
env: | ||
POSTGRES_PASSWORD: mysecretpassword | ||
POSTGRES_DB: immowealth | ||
# Set health checks to wait until postgres has started | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
# Maps tcp port 5432 on service container to the host | ||
- 5432:5432 | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '21' | ||
cache: 'gradle' | ||
- name: Build with Gradle | ||
run: ./gradlew build -Dquarkus.package.type=uber-jar | ||
- name: Start application | ||
run: | | ||
nohup ./gradlew --console=plain quarkusDev & | ||
for attempt in {1..20}; do sleep 1; if curl http://localhost:8080/; then echo ready; break; fi; echo waiting...; done | ||
- name: Generate schema | ||
run: curl http://localhost:8080/graphql/schema.graphql >> web/schema.graphql | ||
- name: Update schema | ||
run: | | ||
echo "scalar Date" >> web/schema.graphql | ||
echo "scalar BigInteger" >> web/schema.graphql | ||
echo "scalar DateTime" >> web/schema.graphql | ||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 20 | ||
- name: Build web | ||
run: | | ||
cd web | ||
npm ci | ||
npm run compile | ||
npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/main/kotlin/de/mathisburger/data/input/UpdateCreditInput.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package de.mathisburger.data.input | ||
|
||
import jakarta.json.bind.annotation.JsonbCreator | ||
|
||
/** | ||
* The update credit input for creating credits | ||
*/ | ||
data class UpdateCreditInput @JsonbCreator constructor( | ||
/** | ||
* The ID of the credit that should be updated | ||
*/ | ||
var id: Long, | ||
/** | ||
* The credit amount | ||
*/ | ||
val amount: Long?, | ||
/** | ||
* The interest rate | ||
*/ | ||
val interestRate: Double?, | ||
/** | ||
* The redemption rate | ||
*/ | ||
val redemptionRate: Double?, | ||
/** | ||
* The credit bank | ||
*/ | ||
val bank: String? | ||
) |
25 changes: 25 additions & 0 deletions
25
src/main/kotlin/de/mathisburger/data/input/UpdateHousePriceChangeInput.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package de.mathisburger.data.input | ||
|
||
import jakarta.json.bind.annotation.JsonbCreator | ||
|
||
/** | ||
* Update house prices input | ||
*/ | ||
data class UpdateHousePriceChangeInput @JsonbCreator constructor( | ||
/** | ||
* The ID of the entity | ||
*/ | ||
val id: Long, | ||
/** | ||
* The zip | ||
*/ | ||
val zip: String?, | ||
/** | ||
* The year | ||
*/ | ||
val year: Int?, | ||
/** | ||
* The change | ||
*/ | ||
val change: Double?, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/main/kotlin/de/mathisburger/data/response/MapResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package de.mathisburger.data.response | ||
|
||
import de.mathisburger.entity.RealEstateObject | ||
import jakarta.json.bind.annotation.JsonbCreator | ||
|
||
/** | ||
* Map response | ||
*/ | ||
data class MapResponse @JsonbCreator constructor( | ||
/** | ||
* All objects that should be shown on map | ||
*/ | ||
val objects: List<RealEstateObject>, | ||
/** | ||
* Middle lat of the map | ||
*/ | ||
val lat: Double, | ||
/** | ||
* Middle lon of the map | ||
*/ | ||
val lon: Double | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.