Take snapshots of Airtable bases for offline browsing and transformation
-
eXist-db version:
5.3.0-SNAPSHOTor greater -
ant version:
1.10.7(for building from source) -
node version:
12.x(for building from source)
This package is published to the eXist-db public repository. To install it from there:
-
Open Dashboard on your local eXist-db instance, log into Dashboard as an administrator (user
adminand the password you set for this user; the password may be blank if you did not set one up after installing eXist) and click onPackage Manager. -
In the
Package Managerwindow, click on theAvailabletab, where you will find the package listed. To download and install the package, click on the downward-facing arrow icon in the package description.
Or, if you prefer to download the package from GitHub Releases, follow these directions:
Download the
airlock-2.1.0.xarfile from GitHub Releases page.Open Dashboard as described above, click on the
Uploadbutton in the upper left corner, and select the.xarfile you just downloaded. (For a full offline installation, you will need to download the latest.xarrelease of: airtable.xq, Roaster, and exist-markdown too.)
Having installed Airlock, open http://localhost:8080/exist/apps/airlock, log into the app as a user in the airlock group (by default, the app creates a user airlock with password airlock), add your Airtable API Key, add a base ID, and take your first snapshot.
-
Download, fork or clone this GitHub repository
-
There are two default build targets in
build.xml:-
devincluding all files from the source folder including those with potentially sensitive information. -
deployis the official release. It excludes files necessary for development but that have no effect upon deployment.
-
-
Calling
antin your CLI will build both files:
cd airlock
ant- to only build a specific target call either
devordeploylike this:
ant devIf you see BUILD SUCCESSFUL ant has generated a airlock-*.xar file in the build/ folder. To install it, follow the instructions above.
To run tests locally your app needs to be installed in a running eXist-db instance at the default port 8080 and with the default dba user admin with the default empty password.
A quick way to set this up for Docker users is to simply issue:
docker run -dit -p 8080:8080 existdb/existdb:releaseAfter you finished installing the application, you can run the full test suite locally.
This app uses mochajs as a test-runner. To run both XQuery and Javascript unit-tests, type:
npm testThis app uses cypress for integration tests, type:
npm run cypressAlternatively, use npx:
npx cypress openYou can take a look at the Contribution guidelines for this project
AGPL-3.0 © Joe Wicentowski