All Projects → pfstrack → eldamo

pfstrack / eldamo

Licence: MIT License
An Elvish Data Model in XML

Programming Languages

HTML
75241 projects
XSLT
1337 projects
java
68154 projects - #9 most used programming language
XQuery
69 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Eldamo

An Elvish Data Model in XML.

Most consumers of this project are probably interested in the finished product, the generated Elvish lexicon. This can be found at http://eldamo.org (mirror http://pfstrack.github.io/eldamo/) and project releases are zip files of this site.

This document provides information for those interested in how the Eldamo site is generated. To fully understand this process, you need to know:

  • Java web application development
  • XML editing and parsing, include XSL and XQuery

Requirements

  1. Git
  2. Java 1.6+
  3. Gradle 2.6+ (which will download other dependencies)
  4. A good text editor (I use TextWrangler on OS X).
  5. For generating the site, a web crawler (I use SiteSucker on OS X)

Command-line Execution

  1. Clone the project from github:
git clone https://github.com/pfstrack/eldamo.git
  1. Copy the data directory inside the web application directory:
cp -R src/data src/main/webapp

Or simply manually copy the directory.

  1. Use gradle to launch the Jetty web application server (tomcat probably also works).
gradle :jettyRun
  1. Browse the site:
http://localhost:8080/eldamo/
  1. Edit the data file (src/main/webapp/eldamo-data.xml) and refresh the pages to see changes.

Building in Eclipse

If you want to use an Java development tool, here is how to set the project up in Eclipse.

  1. Use gradle generate an Eclipse project:
gradle :eclipse
  1. Import the project into Eclipse: File > Import : General > Existing Project Into Workspace

  2. In the project properties, set the file encoding to UTF-8:

  • Project > Properties
  • Resource > Text File Encoding
  • Select Other: UTF-8
  1. Install the Jetty plug-in for Eclipse.

  2. Select the project and Run > Run As > Run Jetty

  3. Browse the site as above:

http://localhost:8080/eldamo/
  1. For best performance, you will need to increase the memory in JVM arguments for the Jetty run configurations:
  • Run > Run Configurations
  • Jetty Webapp > eldamo
  • Arguments > VM Arguments
-Xmx1024m

Building the Eldamo Site

  1. Switch to the "pub" (publish) version of the site:
http://localhost:8080/eldamo/pub/index.html
  1. Use your web crawler of choice to crawl and download the site contents.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].