Skip to content

andreastai/xcf-webapp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XCF: Web Application

This is both the front- and backend for the XCF-Web-Application.

Related repositories

The actual XCF itself is contained in the xcf Git repository and provides necessary helper files.

Running the application

First time run

To run the application you can either use the provided config.default.xml or create your own config file or by copying the deafult config:

cp backend/app/config.default.xml backend/app/config.xml

By default: config.default.xml is used and no further steps are required.

About the config file

Applications can be run from arbitrary URLs, local installations are possible. Just point the engine and rules to a local folder. Please use absolute paths or even better file://-URLs.

<config>
  <xcf-engine>https://subtitling.irt.de/xcf_sample/engine/</xcf-engine>
  <xcf-rules>https://subtitling.irt.de/xcf_sample/rules/</xcf-rules>
</config>

Make sure your engine & rules-folders contain at least the following files:

├── engine
│   └── reportview.xsl
└── rules
    ├── constraints.xml
    ├── rules_compiled.xsl
    └── rules_config.xml

For more information on what these files do, please refer to:

In short:

  • rules_compiled.xsl contains a transformation that performs the actual checking
  • constraints.xml contains detailed information for a given error, that will be added to the report
  • reportview.xsl is used to convert a report a more user friendly format
  • rules_config.xml can be used to configure which checkboxes in the web-fronted are initially checked

Development

For development start webpack-dev-server:

cd frontend && npm -s install && npm run dev

alongside the basexhttp-backend:

cd backend/app && bin/basexhttp

The frontend will be served at localhost:8080 and requests to the BaseX HTTP backend will be proxied automatically by webpack.

To Build from Source and run in production

# Build the frontend
cd frontend && npm -s install && npm run build && cd ..
cp frontend/dist/index.html backend/app/webapp/
cp -r frontend/dist/assets backend/app/webapp/
# Start basexhttp
cd backend/app && bin/basexhttp

To build a docker container

# Build the frontend
cd frontend && npm -s install && npm run build && cd ..
docker build -t xcf-check . && docker run -p 80:8984 xcf-check

License

The web frontend is offered by BaseX GmbH and licensed under the MIT license.

About

Web Frontend for IRT’s XML Checker Framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 48.2%
  • JavaScript 31.6%
  • XQuery 12.2%
  • Shell 4.7%
  • Batchfile 2.5%
  • Dockerfile 0.4%
  • HTML 0.4%