Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.
/ locus-classicus Public archive

A demo reading environment for Latin texts with translations and commentaries in Danish.

License

Notifications You must be signed in to change notification settings

meaton/locus-classicus

Repository files navigation

Locus Classicus prototype

Demo and API Documentation

Source code

  • TODO: github repo/license

Requirements

Meteor Packages required:

Installation

eXist-db

  1. Module/library requirements
  • JSON Parser and Serializer for XQuery
  1. User configuration
  • Administrator user can setup additional users if required
  1. Deploy REST service app (RESTXQ) as packaged eXist-db app
  • An eXist-db app package can be deployed via the eXist-db Package Manager
  • App package is a ZIP format, containing the collection structure/data (directories), XQuery modules and other asset files (images, CSS).
  1. Upload TEI XML data
  • Optionally TEI data can be packaged within the eXist-db app or
  • Uploaded to the deployed app (collection folder) via the eXist-db Collection Browser.
  1. Browsing Collection and Re-indexing
  • The apps collection is typically deployed under the path: /db/apps/{app_name}
  • The toolbar in the Collection Browser contains functions for re-indexing, uploading and deleting resources (Note: authorisation is required to perform these actions).

Note: In the current app structure and configuration, there is typically a single collection folder that is used, over which the data is indexed and queried. app_name is configured in the build.xml file (eXist-db app package). It is recommended to deploy/test an app package using the Package Manager for successful operation of the REST service (RESTXQ).

Deployment to alternative server (environment)

  • The Meteor app can be deployed externally using the meteor cmd meteor deploy app_hostname.meteor.com for development/testing or using Meteor Up to your own hosted server. Hosted deployment options with are also available via Meteor Galaxy.

Running the app locally

Running Meteor app on port 80

ROOT_URL="http://{myDomain}/" meteor --port 80

Web server (proxy)

If running the Meteor app over another HTTP port other than 80, configure a web server (Apache, nginx) with port forwarding.

Example nginx configuration:

  server {
      listen 80;
        server_name www.locus-classicus.org locus-classicus.org;

        access_log /var/log/nginx/latinreaddemo.access.log;
        error_log /var/log/nginx/latinreaddemo.error.log;

        location / {
                proxy_pass http://127.0.0.1:8000;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection 'upgrade';
                proxy_set_header X-Forwarded-For $remote_addr;
        }

  }

Contact Info

Tue Emil Lembcke Søvsø - Project Lead
The Saxo Institute University of Copenhagen
email: [email protected]

Mitchell Seaton - Developer
Center for Language Technology Department of Nordic Research
University of Copenhagen
email: [email protected]


Locus Classicus is sponsored by CLARIN-DK