This is a database for cuneiform tablets and signs, based on exist-db and betterFORM.
Setup
-
git clone https://{USERNAME}@acdh.oeaw.ac.at/redmine/cfdb.git e.g: https://pandorfer@acdh.oeaw.ac.at/redmine/cfdb.git
-
git checkout master
-
open command prompt(cmd)
-
change directory to
/cfdb -
copy, paste and rename build.properties.default to build.properties
-
open
build.propertiesand adapt to your needs- add an app.name
- for building a public instance make sure that build properties say
app.operationmode=public
-
back in the command prompt run:
ant -
in your
/cfdbdirectory check if there is a directory/cfdb/build -
open it and see if you find a .xar package. This package should carry the name you set in the
build.properties
-
start your local exist-db instance
-
open your favorite browser and browse to exist-db´s dashboard, usually found at: http://localhost:8080/exist/apps/dashboard/index.html
-
click on the ‘Package Manager’ tile and here on the ‘add package’ sign (in the top left corner)
-
Upload your recently built package {yourappsname}.xar
-
close the package manager
-
on the dashboard you should find a new application named {yourappsname}
-
before happily clicking on it
-
click on the ‘User Manager’-tile and add your user (probably the ‘admin’) to ‘cfdbEditors’. Important: Make sure that the user has a non-empty password.
- Now click on the on the tile in the dashboard which carries the name *{yourappsname} *and you should see a log in screen where which accepts your (admin)credentials.
- cfdbEditors can access and change all tablets
- cfdbAnnotators can access and change only their own tablets
- cfdbReaders have read-only access
Access the application at http://localhost:8080/exist/apps/{app-name as set in build.properties}.
! Important: the webapp makes use of betterform's upload functionality, so make sure that the upload directory specified in
$EXIST_HOME/extensions/betterform/main/webapp/WEB-INF/betterform-config.xml property name="uploadDir" (default: $EXIST_HOME/webapp/upload) exists and is writeable to the exist-process.