Web application for managing metadata about scientific instruments and creating persistent identifiers (PIDs) for them according to PIDINST.
Start services:
docker compose upInitialize database:
docker compose exec django ./manage.py migrate
docker compose exec django ./manage.py loaddata instruments/fixtures/initial.json
docker compose exec django ./manage.py createsuperuserNavigate to http://localhost:8000.
Install pre-commit hooks:
pre-commit installTo make migrations, run tests, etc., use prefix:
docker compose exec django ./manage.pyRelease version:
pip install -r requirements_dev.txt
release-version patchInstrumentDB is configured using the following environment variables:
MODE: must have valueproductionPID_SERVICE_URL: URL to an instance of PID serviceDATABASE_HOST: PostgreSQL hostDATABASE_PORT: PostgreSQL portDATABASE_NAME: PostgreSQL database nameDATABASE_USER: PostgreSQL userDATABASE_PASSWORD: PostgreSQL passwordSECRET_KEY: secret key for cryptographic signingPUBLIC_URL: public URL of the application
MIT