Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
radegast
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jan Hrabal
radegast
Commits
4d3fd3b2
Commit
4d3fd3b2
authored
Jul 08, 2019
by
Jan Hrabal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server rt
parent
29e0b2df
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
22 deletions
+34
-22
build.sh
backend/build.sh
+20
-0
init.sql
backend/sql/init.sql
+1
-1
application.properties
backend/src/main/resources/application.properties
+2
-2
MANIFEST.MF
backend/target/classes/META-INF/MANIFEST.MF
+0
-10
App.js
mobile/App.js
+11
-9
No files found.
backend/build.sh
0 → 100644
View file @
4d3fd3b2
#!/bin/sh
docker stop radegast
docker
rm
radegast
#
#npm run build:production --prefix src/main/frontend
#
mvn clean
install
docker:build
-DskipTests
=
true
#mvn docker:build -DskipTests=true
#
if
[
"
$1
"
==
"push"
]
then
docker push jhdockerhub/radegast:latest
fi
#
#docker run -p127.0.0.1:7070:7070 --restart=unless-stopped -e HOSTNAME_BASE=http://localhost:3030 --link postgresdb:postgresdb --link mailserver:mailserver -v /cygdrive/c/data/suite:/var/data -v /cygdrive/c/data/fonts:/var/fonts -d --name suite jhdockerhub/suite:latest
#
#docker run -p127.0.0.1:7070:7070 --log-opt max-size=50m -e HOSTNAME_BASE=http://localhost:3030 --restart=unless-stopped --link postgresdb:postgresdb -v C:/data/suite:/var/data -v C:/data/fonts:/var/fonts -d --name suite jhdockerhub/suite:latest --spring.mail.host=docker.for.win.localhost --spring.profiles.active=dev
#
docker images
--quiet
--filter
=
dangling
=
true
| xargs
--no-run-if-empty
docker rmi
-f
\ No newline at end of file
backend/sql/init.sql
View file @
4d3fd3b2
/*
CREATE DATABASE ra
tei
t
CREATE DATABASE ra
degas
t
WITH
OWNER = postgres
ENCODING = 'utf8'
...
...
backend/src/main/resources/application.properties
View file @
4d3fd3b2
...
...
@@ -6,8 +6,8 @@ build.timestamp=@timestamp@
app.locales
=
en,cs,de
# logging
logging.level.org.hibernate
=
WARN
logging.level.org.hibernate.SQL
=
WARN
logging.level.org.hibernate
=
ERROR
logging.level.org.hibernate.SQL
=
ERROR
# server port config
...
...
backend/target/classes/META-INF/MANIFEST.MF
deleted
100644 → 0
View file @
29e0b2df
Manifest-Version: 1.0
Built-By: Jan
Build-Jdk: 10.0.2
Implementation-Title: RateIT
Implementation-Version: 0.0.1
Implementation-Vendor-Id: com.jh
Implementation-URL: https://projects.spring.io/spring-boot/#/spring-bo
ot-starter-parent/boot-react/radegast
Created-By: Maven Integration for Eclipse
mobile/App.js
View file @
4d3fd3b2
...
...
@@ -2,7 +2,7 @@ import React from 'react';
import
{
StyleSheet
,
Text
,
View
,
TouchableOpacity
,
AsyncStorage
,
Alert
,
StatusBar
}
from
'react-native'
;
const
SEND_DATA_TIMER
=
1
0000
;
const
SEND_DATA_TIMER
=
6
0000
;
const
INFO_TIMER
=
1000
;
...
...
@@ -24,12 +24,12 @@ class App extends React.PureComponent {
}
componentDidMount
()
{
this
.
timer
=
set
Timeout
(
this
.
sendData
,
SEND_DATA_TIMER
);
this
.
timer
=
set
Interval
(
this
.
sendData
,
SEND_DATA_TIMER
);
}
componentWillUnmount
()
{
if
(
this
.
timer
)
{
clear
Timeout
(
this
.
timer
);
clear
Interval
(
this
.
timer
);
}
}
...
...
@@ -52,22 +52,24 @@ class App extends React.PureComponent {
let
response
=
await
fetch
(
'https://radegast.janhrabal.com/api/ratings'
,
{
method
:
"POST"
,
body
:
JSON
.
stringify
(
body
)
body
:
JSON
.
stringify
(
body
),
headers
:
{
'Content-Type'
:
'application/json'
,
}
});
let
responseJson
=
await
response
.
json
();
return
responseJson
.
movies
;
//let responseJson = await response.text
();
//
return responseJson.movies;
}
catch
(
error
)
{
//console.error(error);
// return to buffer
while
(
body
.
length
)
{
buffer
.
push
(
body
.
shift
());
}
}
//set other timeout
this
.
timer
=
setTimeout
(
this
.
sendData
,
SEND_DATA_TIMER
);
console
.
warn
(
"sendData - error"
,
this
.
state
.
buffer
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment