Web application for managing metadata about scientific instruments and creating persistent identifiers (PIDs) for them according to PIDINST.
Start services:
docker compose up
Initialize 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 createsuperuser
Navigate to http://localhost:8000.
Install pre-commit hooks:
pre-commit install
To make migrations, run tests, etc., use prefix:
docker compose exec django ./manage.py
Release version:
pip install -r requirements_dev.txt
release-version patch
InstrumentDB is configured using the following environment variables:
MODE
: must have valueproduction
PID_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