Clone the repository with submodules:
git clone
cd tech4dev-hosm
git submodule update --initSetup your environment by running:
make installIn one shell, run:
make run-db
make run-backendThe interactive API documentation will be available at http://localhost:8000/docs.
In another shell, run:
make run-frontendThe website will be available at http://localhost:9000.
This project uses a custom fork of Annotorious that adds undo functionality during polygon creation. To update and publish the Annotorious package:
# From the cloned Annotorious repository
npm install
npm run build
npm pack --workspaces
gh release create <tag> *.tgzIf the GitHub release already exists, you can replace the assets with:
gh release upload <tag> *.tgz --clobberTo generate test data, run the following command after starting the database:
make generate-mock-dataTo generate .dzi tiles for a directory of images (recursively), run the following command:
make generate-tiles <input_directory> <output_directory>Existing tiles will be skipped.