copilot-swe-agent[bot] 0c362fd40b feat: SQLite DB with migrations replaces all JSON file storage
- Add db.php with PDO singleton, migration runner, and all helper functions
- Add migrations/001_initial_schema.sql (full schema)
- Add migrations/002_import_json.php (one-time JSON → DB importer)
- Add _incl/switch_tenant.php POST endpoint for tenant/centro switching
- Update tools.auth.php: DB-backed login, cookie auth, session reload, init_active_centro()
- Update all sysadmin pages (users, centros, aularios, invitations, reset_password) to use DB
- Update aulatek/index.php, aulario.php, supercafe.php, supercafe_edit.php to use DB
- Update aulatek/comedor.php and api/comedor.php to use DB
- Update aulatek/paneldiario.php: aulario config + comedor data from DB
- Update aulatek/proyectos.php: aulario config + sharing metadata from DB
- Update club/cal.php, index.php, edit_data.php, upload/upload.php to use DB
- Update account/index.php: rich profile, tenant list, aula list, session info, permissions
- Update pre-body.php account dropdown: shows active org + inline tenant switcher
- Update DATA_STRUCTURE.md to document DB approach and migration system

Co-authored-by: naielv <109038805+naielv@users.noreply.github.com>
2026-03-06 22:00:48 +00:00
2026-01-26 02:56:57 +01:00

Axia4

Axia4 is a unified platform for EuskadiTech and Sketaria, providing various services including EntreAulas (connected classroom management system).

Quick Start with Docker

The easiest way to run Axia4 is using Docker:

# 1. Clone the repository
git clone https://github.com/Axia4/Axia4.git
cd Axia4

# 2. Create the data directory structure
mkdir -p DATA/entreaulas/Usuarios
mkdir -p DATA/entreaulas/Centros

# 3. Start the application
docker compose up -d

# 4. Access the application
# Open http://localhost:8080 in your browser

Documentation

Features

  • EntreAulas: Management system for connected classrooms
  • Aularios: Centralized access to classroom resources
  • Integration with multiple external services

Requirements

  • Docker Engine 20.10+
  • Docker Compose V2

Manual Installation

  • PHP 8.2+
  • Apache 2.4+
  • PHP GD extension

Configuration

All application data is stored in the /DATA directory which is mounted from the host system. See DATA_STRUCTURE.md for details on how to set up your data files.

Development

To enable live code updates during development, uncomment the volume mount in docker-compose.yml:

volumes:
  - ./DATA:/DATA
  - ./public_html:/var/www/html  # Uncomment this line

Google OAuth Redirect URLs

Format: https://example.com/_login.php?google_callback=1

Support

For issues and questions, please open an issue on GitHub.

License

See LICENSE file for details.

Description
No description provided
Readme 4.9 MiB
Languages
PHP 96.8%
HTML 2%
JavaScript 0.4%
Dockerfile 0.4%
CSS 0.2%
Other 0.2%