Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation of OpenAPI web services and JavaScript library #21

Open
runarbe opened this issue Apr 25, 2016 · 1 comment
Open

Installation of OpenAPI web services and JavaScript library #21

runarbe opened this issue Apr 25, 2016 · 1 comment
Assignees

Comments

@runarbe
Copy link
Collaborator

runarbe commented Apr 25, 2016

This issue may now be addressed upon your convenience @martin-kuba

  • The OpenAPI custom web services are available in the GitHub repository:
    • https://github.com/SDI4Apps/openapi
    • The repository is a Maven Java repository with two target profiles 'remote' and 'local'
    • The project compiles to the single distributable openapi.war
    • The project depends on three databases being present on the host
    • The project depends on settings in profile-specific settings files that are excluded from the repository for obvious security reasons.
    • The settings file defines database connection parameters as well as paths to file locations used by the OpenAPI custom web services
  • The OpenAPI indexer cron-job task is available in the GitHub repository:
    • https://github.com/SDI4Apps/cronindexer.git
    • The repository is a Maven Java repository with two target profiles 'remote' and 'local'
    • The project compiles to the single executable Jar file 'cronindexer.jar' that includes all dependent libraries to be self-contained.
    • The project depends on one database being present on the host
    • The project depends on settings in two profile-specific settings files that are excluded from the repository for obvious security reasons.
    • The settings file defines database connection parameters as well as paths to file locations used by the OpenAPI custom web services
    • The JAR depends on GDAL/OGR being installed on the host server
    • The JAR should be executed as a CRON job, every 5 minutes at the outset
    • The JAR must be executed setting paths to shared JNI libraries as well as extending the classpath to include 'gdal.jar'
    • The executable class is eu.sdi4apps.ftgeosearh

This example shows how the invocation of the cron JAR is done on the 'main' platform server

java -Djava.library.path=/usr/lib/jni/ -cp "cronindexer.jar:/usr/lib/jni/*.so:/usr/share/java/gdal.jar" eu.sdi4apps.ftgeosearch.CronJob
  • The JavaScript library is available in the GitHub repository
    • https://github.com/SDI4Apps/s4a.js
    • The repository is managed using NPM
    • The build system is Grunt
    • The compiled distribution files are included in the repository (possibly bad practice) under the folder /dist/
    • The library should be available under the path cdn on the
@runarbe runarbe changed the title Installation details for OpenAPI custom web services and JavaScript library Installation of OpenAPI web services and JavaScript library Apr 25, 2016
@martin-kuba
Copy link
Member

@runarbe please provide the way how the databases should be created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants