This is both the front- and backend for the XCF-Web-Application.
The actual XCF itself is contained in the xcf Git repository and
provides necessary helper files.
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.xmlBy default:
config.default.xmlis used and no further steps are required.
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.xmlFor more information on what these files do, please refer to:
In short:
rules_compiled.xslcontains a transformation that performs the actual checkingconstraints.xmlcontains detailed information for a given error, that will be added to the reportreportview.xslis used to convert a report a more user friendly formatrules_config.xmlcan be used to configure which checkboxes in the web-fronted are initially checked
For development start webpack-dev-server:
cd frontend && npm -s install && npm run devalongside the basexhttp-backend:
cd backend/app && bin/basexhttpThe frontend will be served at localhost:8080 and requests to the BaseX HTTP backend will be proxied automatically by webpack.
# 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# Build the frontend
cd frontend && npm -s install && npm run build && cd ..
docker build -t xcf-check . && docker run -p 80:8984 xcf-checkThe web frontend is offered by BaseX GmbH and licensed under the MIT license.