Skip to content

Latest commit

 

History

History
54 lines (46 loc) · 3.16 KB

README.md

File metadata and controls

54 lines (46 loc) · 3.16 KB

#DEPRECATED Please use the code for the Srophé Application [https://github.com/srophe/srophe]

Syriaca.org

Application data for Syriaca.org [http://syriaca.org]: The Syriac Reference Portal All publications of Syriaca.org are made available online in a free and open format using the Creative Commons licenses.

This is a customization of The Srophé Application [https://github.com/srophe/srophe]. Version 3.0 of this software represents a major code refactor and is not backwards compatible with earlier versions of the code. To access an earlier version use tag v2.x. To use the software with your own data fork or clone a version of the The Srophé Application [https://github.com/srophe/srophe].

Dependencies

TEI data

Syriaca.org TEI data for publications is available: [https://github.com/srophe/srophe-app-data] The data must be packaged and deployed to your eXist instance in order to use the syriaca.org app.

Additional dependancies

Check that the following packages/libraries are deployed in eXist before deploying the srophe-eXist-app:

Packages can be deployed via the eXistdb dashboard.

Setting up Github webhooks

Syrica.org uses Github webhooks [https://developer.github.com/webhooks/] to keep the remote application upto date with the github repository.

  • Requires the EXPath Crypto library to verify Github submissions. [http://exist-db.org:8098/exist/apps/public-repo/packages/expath-crypto-exist-lib.html]

  • Requires a config file added to the app home directory. Do not store this file in your github repository. Example:

    <config>
        <!-- Configuration for Github webhooks sync feature -->
        <git-config>
            <!-- github secret key can be stored here or as a environment variable. (prefered)  -->
            <private-key/>
            <private-key-variable>VARIABLE_NAME</private-key-variable>
            <!-- github token for rate limiting. can be stored here or as a environment variable. (prefered)  -->
            <gitToken/>
            <gitToken-variable/>
            <!-- Branch to sync, if empty assumes master -->
            <github-branch>master</github-branch>
            <!-- Collection in eXistdb to sync app to. example: /db/apps/srophe -->
            <exist-collection>/db/apps/srophe</exist-collection>
            <!-- App root in git repository. example: srophe-app -->
            <repo-name>srophe-app</repo-name>
        </git-config>
    </config>
    
  • Setup webhooks on your github repository, Syriaca.org XQuery endpoint: http://localhost:8080/exist/apps/srophe/modules/git-sync.xql. [https://developer.github.com/webhooks/creating/]