Files
encoach_backend_new_v2/new_project/install_openeducat_stack.sh
Yamen Ahmad 3e83d8d7d5 feat: add complete EnCoach backend — Odoo 19 + all addons
Includes:
- Odoo 19 framework (odoo/)
- 27 custom EnCoach addons (new_project/custom_addons/)
  - encoach_core, encoach_api, encoach_lms_api, encoach_adaptive_api
  - encoach_exam, encoach_taxonomy, encoach_adaptive, encoach_assignment
  - encoach_ai, encoach_ai_grading, encoach_ai_generation, encoach_ai_media
  - encoach_courseware, encoach_communication, encoach_subscription
  - encoach_notification, encoach_approval, encoach_branding
  - encoach_classroom, encoach_registration, encoach_stats
  - encoach_faq, encoach_ticket, encoach_training, encoach_resources
  - encoach_adaptive_ai, encoach_sis
- 21 OpenEduCat Enterprise modules (new_project/enterprise-19/)
- 14 OpenEduCat Community modules (new_project/openeducat_erp-19.0/)
- Configuration: odoo.conf, requirements.txt, scripts
- 200+ REST API endpoints with JWT authentication
- SRS and test documentation

Made-with: Cursor
2026-04-01 17:10:04 +04:00

26 lines
1.4 KiB
Bash
Executable File

#!/usr/bin/env bash
# Install OpenEduCat community + enterprise modules from the screenshot (all installable).
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ODOO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
CONFIG="$SCRIPT_DIR/odoo.conf"
DB="${1:-encoach_v2}"
if [ ! -d "$ODOO_ROOT/odoo" ] || [ ! -f "$ODOO_ROOT/odoo/odoo-bin" ]; then
echo "Expected Odoo at $ODOO_ROOT/odoo/odoo-bin"
exit 1
fi
if [ -d "$ODOO_ROOT/.conda-envs/odoo19" ]; then
PYTHON="$ODOO_ROOT/.conda-envs/odoo19/bin/python"
elif [ -d "$ODOO_ROOT/venv" ]; then
PYTHON="$ODOO_ROOT/venv/bin/python"
else
PYTHON="python3"
fi
MODS="openeducat_onboarding,openeducat_web,openeducat_core_enterprise,openeducat_erp,openeducat_activity,openeducat_admission_enterprise,openeducat_assignment_enterprise,openeducat_attendance_enterprise,openeducat_classroom_enterprise,openeducat_exam_enterprise,openeducat_student_leave_enterprise,openeducat_timetable_enterprise,openeducat_lesson,openeducat_student_progress_enterprise,openeducat_assignment_grading_enterprise,openeducat_assignment_grading_bridge,openeducat_dynamic_admission,openeducat_grading,openeducat_fees_plan,openeducat_fees_on_duration,openeducat_fees_on_session,openeducat_attendance_report_xlsx,openeducat_core_send_mail"
echo "Installing OpenEduCat stack on database: $DB"
cd "$ODOO_ROOT/odoo"
exec "$PYTHON" odoo-bin -c "$CONFIG" -d "$DB" -i "$MODS" --stop-after-init