aiiinotate
v0.4.3
Published
a fast IIIF-compliant annotation server
Downloads
432
Maintainers
Readme
aiiinotate
aiiinotate is a fast and lightweight annotation server for IIIF. It relies on nodejs/fastify and mongodb and provides an API to read/write/update/delete IIIF annotations and index manifests.
PROD USAGE
Install
Install mongodb.
- see dev installation script for help
- checkout the official installation guide
Install aiiinotate
npm install aiiinotateSetup the app
Setup your
.envfile after .env.template.Start
mongod
sudo systemctl start mongod- Create and configure the database
aiiinotate --env <path-to-your-env-file> -- migrate applyUsage
All commands are accessible through a CLI (./src/cli).
Run the app
aiiinotate --env <path-to-your-env-file> -- serve prod
# or
aiiinotate --env <path-to-your-env-file> -- serve devRun administration commands
The base command is:
aiiinotate --env <path-to-your-env-file> -- <command>It will give full access to the CLI interface of Aiiinotate. Run aiiinotate --help for more info.
- Import data - TODO
DEV USAGE
Install
# clone the repo
git clone [email protected]:Aikon-platform/aiiinotate.git
# move inside it
cd aiiinotate
# install mongodb
bash ./scripts/setup_mongodb.sh
# install node
bash ./scripts/setup_node.sh
# install dependencies
npm iSetup
After installing, some setup must be done
Setup your
.envfile after .env.template and place it at./config/.env.Start
mongod
sudo systemctl start mongod- Configure the database
npm run migrate applyUsage
Remember to have your mongodb service running: sudo systemctl start mongod !
- Start the app
npm run start- Test the app
npm run test- Run the CLI
npm cli- Process migrations
# create a new migration. NOTE: the `--` is necessary !
npm run migrate make -- --migration-name <your migration name>
# apply all pending migrations
npm run migrate apply
# revert the last migration
npm run migrate revert
# revert all migrations
npm run migrate revert-allLicense
GNU GPL 3.0.
