Small SQLite-backed app for editing and publishing the metadata schema.
cd /Users/asmartinez/Documents/Codex/2026-06-29/files-mentioned-by-the-user-implement/outputs/metadata-schema-admin
python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
python app.py init-db
python app.py import-schema
python app.py create-admin --username admin --password "CHANGE_THIS_PASSWORD"
python app.py run --port 8030Open:
http://localhost:8030/login
Public schema routes:
http://localhost:8030/esquemas/metadatos/
http://localhost:8030/esquemas/metadatos.json
http://localhost:8030/esquemas/metadatos.jsonld
- Change the admin password before deployment.
- Set a stable
SECRET_KEYenvironment variable. - Put the app behind HTTPS.
- Back up
data/metadata.db. - Use Python 3.9 or newer.
- Use
gunicorn wsgi:applicationbehind a web server or institutional hosting platform. - See
DEPLOYMENT.mdfor the Biblioteca server handoff notes.
Do not publish a database that still uses a temporary local password.