Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
merge and set API to IP
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangpk committed Mar 27, 2020
2 parents 4677b1d + 42621d8 commit 83fd21f
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 43 deletions.
18 changes: 9 additions & 9 deletions .k8s/deployment-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,19 @@ spec:
readinessProbe:
httpGet:
path: /actuator/health
port: 8080
initialDelaySeconds: 10
port: 8081
initialDelaySeconds: 40
timeoutSeconds: 2
periodSeconds: 3
failureThreshold: 1
livenessProbe:
httpGet:
path: /actuator/health
port: 8080
initialDelaySeconds: 20
timeoutSeconds: 2
periodSeconds: 8
failureThreshold: 1
httpGet:
path: /actuator/health
port: 8081
initialDelaySeconds: 40
timeoutSeconds: 2
periodSeconds: 8
failureThreshold: 1
- name: cloudsql-proxy
image: gcr.io/cloudsql-docker/gce-proxy:1.14
command: ["/cloud_sql_proxy",
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/Api.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Api {
) {
this.BASE_URL = "http://localhost:80";
} else {
this.BASE_URL = "https://api.imis-prototyp.de";
this.BASE_URL = "http://35.246.194.158:8080";
}
}

Expand Down
5 changes: 2 additions & 3 deletions client/src/components/LandingPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
src="../assets/logo.png"
aspect-ratio="1.7"
style="vertical-align: middle"
height="140"
/>
<span style="margin-left: 15px">Schnell. Einfach. Zuverlässig.</span>
</h1>
Expand Down Expand Up @@ -36,12 +37,10 @@
</table>
</div>
<br>
<!--
<div>
<h2 style="text-align: center">Unsere Vision</h2>
<h2 style="text-align: center; width:80%">Unsere Vision</h2>
<img src="../assets/vision.png" width="80%"/>
</div>
-->
<br />
</div>
<div class="transition"></div>
Expand Down
51 changes: 26 additions & 25 deletions client/src/components/ViewAllDataComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ import Api from "../api/Api";
const columns = [
{
title: "Nachname",
sorter: (a, b) => a.lastName.localeCompare(b.lastName),
dataIndex: "lastName",
key: "lastName"
},
{
title: "Vorname",
sorter: (a, b) => a.firstName - b.firstName,
sorter: (a, b) => a.firstName.localeCompare(b.firstName),
dataIndex: "firstName",
key: "firstName"
},
Expand All @@ -46,6 +47,7 @@ const columns = [
},
{
title: "Status",
sorter: (a, b) => a.status.localeCompare(b.status),
dataIndex: "status",
key: "status"
},
Expand Down Expand Up @@ -82,7 +84,7 @@ const columns = [
},
];
/*const data = [
const data = [
{
id: "2837917348",
gender: "weiblich",
Expand All @@ -92,20 +94,20 @@ const columns = [
lastName: "Musterfrau",
firstName: "Marie",
city: "Musterstadt",
email: "marie.musterfrau@gmail.com",
phone: "0151 123456789"
email: "marie.musterfrau@example.com",
phone: "0151 1234"
},
{
id: "2837916548",
status: "Verdachtsfall",
status: "Wartet auf Probenname",
timestamp: "20.3.2020 09:20",
birthDate: "05.11.1985",
phone: "0154 78082517",
phone: "0154 7808",
lastName: "Klein",
firstName: "Kai",
gender: "m\u00e4nnlich",
dateOfBirth: "1927-4-5",
email: "K@gmail.de",
email: "K@example.com",
phoneNumber: "55510674222",
street: "Nordstra\u00dfe",
houseNumber: 43,
Expand All @@ -126,12 +128,12 @@ const columns = [
status: "Verdachtsfall",
timestamp: "20.3.2020 10:20",
birthDate: "05.10.1987",
phone: "0154 78082517",
phone: "0154 7808",
lastName: "Bauer",
firstName: "Annika",
gender: "weiblich",
dateOfBirth: "1945-09-24 04",
email: "A@posteo.de",
email: "A@example.com",
phoneNumber: "702109108075",
street: "Haidth\u00f6heAarweg",
houseNumber: 31,
Expand Down Expand Up @@ -159,12 +161,12 @@ const columns = [
status: "Positiv getestet",
timestamp: "20.3.2020 10:15",
birthDate: "17.6.1990",
phone: "040 880066",
phone: "040 8800",
lastName: "Schr\u00f6der",
firstName: "Marie",
gender: "weiblich",
dateOfBirth: "1961-07-29 11",
email: "M@gmail.de",
email: "M@example.com",
phoneNumber: "0265321169",
street: "Niekampsweg",
houseNumber: 43,
Expand All @@ -185,12 +187,12 @@ const columns = [
status: "Genesen",
timestamp: "20.3.2020 10:15",
birthDate: "17.6.1955",
phone: "011 880066",
phone: "011 8800",
lastName: "Winter",
firstName: "Kai",
gender: "m\u00e4nnlich",
dateOfBirth: "1941-02-20 05",
email: "K@t-online.de",
email: "K@example.com",
phoneNumber: "3466899914",
street: "Nordtstra\u00dfe",
houseNumber: 28,
Expand All @@ -211,12 +213,12 @@ const columns = [
status: "Genesen",
timestamp: "18.3.2020 10:50",
birthDate: "17.3.1980",
phone: "011 41241",
phone: "011 4124",
lastName: "Winkler",
firstName: "Karl",
gender: "m\u00e4nnlich",
dateOfBirth: "1981-06-29 07",
email: "K@gmx.de",
email: "K@example.com",
phoneNumber: "797701058010",
street: "Haidth\u00f6heAarweg",
houseNumber: 90,
Expand Down Expand Up @@ -246,12 +248,12 @@ const columns = [
status: "Verdachtsfall",
timestamp: "21.3.2020 12:50",
birthDate: "17.6.1970",
phone: "551 12412",
phone: "551 1241",
lastName: "Wagner",
firstName: "Susanne",
gender: "weiblich",
dateOfBirth: "1932-09-07 12",
email: "S@t-online.de",
email: "S@example.com",
phoneNumber: "0669898850",
street: "Nordufer",
houseNumber: 84,
Expand All @@ -272,12 +274,12 @@ const columns = [
status: "Negativ getestet",
timestamp: "15.3.2020 14:50",
birthDate: "12.9.1984",
phone: "123 01241",
phone: "123 0124",
lastName: "Schulz",
firstName: "Daniela",
gender: "weiblich",
dateOfBirth: "1992-03-12 14",
email: "D@web.de",
email: "D@example.com",
phoneNumber: "8009156938",
street: "B\u00fcckerheide",
houseNumber: 54,
Expand All @@ -298,12 +300,12 @@ const columns = [
status: "Positiv getestet",
timestamp: "12.3.2020 11:25",
birthDate: "12.8.1953",
phone: "021 15122",
phone: "021 1512",
lastName: "Richter",
firstName: "Annika",
gender: "weiblich",
dateOfBirth: "1970-11-14 03",
email: "A@t-online.de",
email: "A@example.com",
phoneNumber: "102849239510",
street: "Haidth\u00f6heAarweg",
houseNumber: 68,
Expand Down Expand Up @@ -331,12 +333,12 @@ const columns = [
status: "Genesen",
timestamp: "21.3.2020 09:30",
birthDate: "11.4.1999",
phone: "194 01241",
phone: "194 0124",
lastName: "Weber",
firstName: "Susanne",
gender: "weiblich",
dateOfBirth: "1957-11-17 12",
email: "S@t-online.de",
email: "S@example.com",
phoneNumber: "36410026036",
street: "Schernerweg",
houseNumber: 46,
Expand All @@ -353,7 +355,6 @@ const columns = [
preIllnesses: ["diabetes"]
}
];
*/
export default {
name: "ViewAllDataComponent",
Expand All @@ -364,7 +365,7 @@ export default {
return {
content: "",
columns,
data: []
data: data
};
},
methods: {
Expand Down
2 changes: 1 addition & 1 deletion server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-security'
// implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.cloud:spring-cloud-gcp-starter-storage'
implementation 'org.postgresql:postgresql:42.2.11'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.9'
Expand Down
2 changes: 1 addition & 1 deletion server/src/main/java/de/coronavirus/imis/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public WebMvcConfigurer corsConfigurer() {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("https://imis-prototyp.de", "http://localhost:8080")
.allowedOrigins("https://imis-prototyp.de", "http://imis-prototyp.de", "http://localhost:8080")
.allowedMethods("GET", "POST", "PUT", "DELETE");
}
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*
package de.coronavirus.imis.config;
import org.springframework.beans.factory.annotation.Autowired;
Expand All @@ -20,11 +21,15 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.portMapper()
.http(Integer.parseInt(environment.getProperty("server.http.port", "8080"))) // http port defined in yml config file
.mapsTo(Integer.parseInt(environment.getProperty("server.port", "443"))); // https port defined in yml config file
.http(80) // http port defined in yml config file
.mapsTo(443); // https port defined in yml config file
http.requiresChannel()
.antMatchers("/actuator/health").requiresInsecure()
.anyRequest().requiresSecure();
.anyRequest()
.requiresSecure();
http.authorizeRequests().antMatchers("/**").permitAll()
.and().httpBasic().disable();
}
}
*/
3 changes: 3 additions & 0 deletions server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ spring:
gcp:
credentials:
location: file:/usr/local/cloud-store/credentials.json
management:
server:
port: 8081
---
spring:
profiles: test
Expand Down

0 comments on commit 83fd21f

Please sign in to comment.