LCAF Registry
=============

Flask + MySQL.

Requirements
  Python 3.10+
  pip
  MySQL 8+ (or compatible MariaDB)

Install
  python -m venv venv
  Windows:  venv\Scripts\activate
  Unix:     source venv/bin/activate
  pip install -r requirements.txt
  copy .env.example to .env and set LCOME_SECRET_KEY
  set LCAF_DB_HOST, LCAF_DB_PORT, LCAF_DB_USER, LCAF_DB_PASSWORD, LCAF_DB_NAME in .env
  create the MySQL database named by LCAF_DB_NAME
  set LCAF_ENV=production and LCAF_DEBUG=0 for live hosts

Run
  Local:      run.bat  |  python app.py  |  ./run.sh
  Production: gunicorn --workers 1 --threads 4 --bind 0.0.0.0:8000 wsgi:app
  cPanel:     passenger_wsgi.py (callable: application)

Notes
  - Ensure MySQL user has CREATE/ALTER/INSERT/UPDATE/DELETE/SELECT privileges on the target database
  - Back up the MySQL database regularly
  - Do not commit .env
