Recording of the app in action. To avoid showing secret data, the demo only uses users without privileges to export.
Screen.Recording.2022-06-13.at.6.37.22.PM.mov
To set this up locally, you'll need a new .env
file and to set up some particular env vars. Here's the rundown:
FLASK_APP = location of the main app. In this case "exporter/app.py"
SECRET_KEY = ๐
DATABASE_URI = ulr of database to be used. Currently the app only supports simple sqlite databases.
DEBUG = ๐๐ซ
HASH = encryption method to be used when hashing passwords, e.g. sha256
DUMMY_ADMIN_USERNAME = username of user to automatically be added to the database upon creation. Will have export rights (sort of).
DUMMY_ADMIN_PASSWORD = the users password
API_USERNAME = username for authentication to the main endpoint
API_PASSWORD = password of user for authentication to the main endpoint
EXPORT_GET_ENDPOINT_BASE = base of the main endpoint
EXPORT_GET_ENDPOINT_END = end of the main endpoint
If it helps, the endpoint is constructed in the following way:
endpoint = f"{settings.EXPORT_GET_ENDPOINT_BASE}{user defined queue id}{settings.EXPORT_GET_ENDPOINT_END}"
EXPORT_POST_ENDPOINT = endpoint for the final converted content to be posted to
VALID_ANNOTATION_ID = a valid annotation id (used for testing)
VALID_QUEUE_ID = a valid queue id (used for testing)