No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Latest commit b3ecf82 Mar 14, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
db import Nov 15, 2016
gradle/wrapper import Nov 15, 2016
gsvideo import Nov 15, 2016
gsweb import Nov 15, 2016
.gitignore import Nov 15, 2016
.travis.yml import Nov 15, 2016
LICENSE Create LICENSE Mar 14, 2017
README.md Update README.md Nov 23, 2016
build.gradle import Nov 15, 2016
gradlew import Nov 15, 2016
gradlew.bat import Nov 15, 2016
gsarch.png Add files via upload Nov 23, 2016
settings.gradle import Nov 15, 2016

README.md

GSurveyCode

GSurveyCode consists of two services:

  • gsWeb - provides web server and rest interfaces, talks to the database.
  • gsVideo - receives file uploads, handles streaming content to clients.

This repository contains the full GameSurvey code.

##Dependencies

  • ffmpeg: The video server requires a working ffmpeg installation for transcoding, expecting path to ffmpegand ffprobe in his config file.
  • JDK: JDK 8 is required to build GSurveyCode

##Compile https://gradle.org/ is used as build system.:

gradle dist

Builds both services and packs them as seperates jar files.

##Configuration ###Web Server

server:
  applicationConnectors:
  - type: http
    port: 8080
  adminConnectors:
  - type: http
    port: 8081

jwtkey:

fbappID: 42
fbsecureCode: 42

#mail settings
smtpAuth: true
startTls: true
ssl: false
smtpHost: smtp.gmail.com
smtpPort: 587
username: example@gmail.com
password: password
from: example@gmail.com


database:
  # the name of your JDBC driver
  driverClass: org.postgresql.Driver
  #  # the username
  user: username
  #
  #  # the password
  password: password
  #
  url: jdbc:postgresql://127.0.0.1/gamesurvey

# Logging settings.
logging:

  # The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
  level: INFO

###Video Server

videoDirName: C:\uploaded\

gsServiceURL: http://localhost:8080
jwtkey:

serverID: 1
ffmpeg:  C:\Program Files\ffmpeg\bin\ffmpeg.exe
ffprobe: C:\Program Files\ffmpeg\bin\ffprobe.exe

jerseyClient:
  timeout: 3s

server:
  applicationConnectors:
  - type: http
    port: 9000
  adminConnectors:
  - type: http
    port: 9001

# Logging settings.
logging:

# The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
 level: INFO

JWT

Both servers require a matching jwt key for internal communication and user authentication.

If the jwtkey field is empty, a random jwt key is generated and logged to stdout. This key should be put into the configuration files.

##System overview

##Running GSurveyCode java -jar gsweb.jar server gsweb.yml java -jar gsvideo.jar server gsvideo.yml

##Deployment For production a reverse proxy like https://nginx.org/ or http://www.haproxy.org/ may provide https and provide a single endpoint for both services.