Skip to content

medien-dresden/comprot-webservice

Repository files navigation

COMPROT Web-Service

Build Status Stories in Ready

Installation

  • create your personal webservice/src/main/resources/data.properties

    comprot.database.driver=com.mysql.jdbc.Driver
    comprot.database.url=jdbc:mysql://localhost:3306/comprot-source
    comprot.database.username=ralf
    comprot.database.password=flar
    
    app.database.driver=com.mysql.jdbc.Driver
    app.database.url=jdbc:mysql://localhost:3306/comprot-app
    app.database.username=ralf
    app.database.password=flar
    
  • set up app-database creation either

    • manually by executing a SQL-script or
    • automatically by setting database.schema to update (webservice/src/main/resources/app.properties)
  • run in different terminals

    ./gradlew solr:run
    ./gradlew webservice:run
    
  • indexing is done by three different jobs, access those through the REST API the following way

    curl -v -u admin:admin123 -H "Content-Type: application/vnd.comprot-v1.0+json" -d '{"name":"targetIndexingJob"}' http://localhost:8080/api/jobs/
    curl -v -u admin:admin123 -H "Content-Type: application/vnd.comprot-v1.0+json" -d '{"name":"compoundIndexingJob"}' http://localhost:8080/api/jobs/
    curl -v -u admin:admin123 -H "Content-Type: application/vnd.comprot-v1.0+json" -d '{"name":"bindingIndexingJob"}' http://localhost:8080/api/jobs/
    

Platform & tools

License

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

Releases

No releases published

Packages

No packages published

Languages