32.1 GB
673,093 files
Updated 5 months ago
Name
Size
.git
.github
__pycache__
app_core
app_formations
core
enise_site
formations
media
src
static
staticfiles
venv
.env417 Bytes
xet
.env.example957 Bytes
xet
.gitignore360 Bytes
xet
APPWRITE_INTEGRATION.md5.83 kB
xet
APPWRITE_MIGRATION_PLAN.md2.91 kB
xet
APPWRITE_QUICK_REFERENCE.md5.69 kB
xet
APPWRITE_README.md4 kB
xet
DEPLOYMENT_CHECKLIST.md4.53 kB
xet
DEPLOYMENT_CHECKLIST_APPWRITE.md4.77 kB
xet
DEPLOYMENT_HF.md4.41 kB
xet
DEPLOYMENT_STATUS.md5.12 kB
xet
DOCS_INDEX.md5.52 kB
xet
Dockerfile622 Bytes
xet
FIXES_APPLIED.md3.69 kB
xet
HF_SPACES_DEPLOYMENT.md6.76 kB
xet
LIENS_IMPORTANTS.md4.33 kB
xet
MONGODB_SUMMARY.md2.37 kB
xet
MONGODB_VSCODE_GUIDE.md3.18 kB
xet
NEXT_STEPS.md4.7 kB
xet
Procfile49 Bytes
xet
QUICK_START.md4.41 kB
xet
README.md2.56 kB
xet
README_PRODUCTION.md6.16 kB
xet
VERIFIER_DEPLOIEMENT.md7.76 kB
xet
app.py1.19 kB
xet
check_env.py1.59 kB
xet
create_dirs.sh222 Bytes
xet
create_mongo_user.py799 Bytes
xet
db.sqlite3172 kB
xet
db_access.sh679 Bytes
xet
django_server.log4.84 kB
xet
explore_mongodb.py4.68 kB
xet
index.html373 Bytes
xet
manage.py666 Bytes
xet
mongodb_access_guide.sh3.13 kB
xet
mongodb_models.py3.36 kB
xet
mongodb_quick_commands.sh2 kB
xet
mongodb_services.py8.75 kB
xet
mongodb_setup_summary.sh2 kB
xet
mongodb_success_summary.sh1.84 kB
xet
package.json441 Bytes
xet
requirements.txt158 Bytes
xet
run.sh1.45 kB
xet
simple_file_services.py15 kB
xet
space.yaml105 Bytes
xet
start_django.sh1.06 kB
xet
test_appwrite_crud.py4.25 kB
xet
test_deployment.py4.67 kB
xet
test_file_manager.sh1.3 kB
xet
test_mongodb_connection.py2.11 kB
xet
test_upload.txt157 Bytes
xet
vite.config.js161 Bytes
xet
README.md

Site ENISE - Django + Appwrite Cloud

Site Django 5 déployé sur Hugging Face Spaces avec Appwrite Cloud comme backend cloud-natif.

Configuration Appwrite

1. Créer le projet

2. Créer la base de données

  • Aller dans DatabasesCreate Database
  • Nommer la base cours_enise

3. Collections

Créer les 3 collections suivantes :

modules

Attribut Type
title string
code string
description string
year integer
semester string

sections

Attribut Type
moduleId string
title string
order integer

resources

Attribut Type
moduleId string
sectionId string
title string
type string
url string
description string
order integer

4. Permissions

Pour chaque collection :

  • Ouvrir l'onglet SettingsPermissions
  • Ajouter le rôle any avec permission read

5. Données示例

Module :

  • title: Énergétique – Thermique
  • code: 4A-S7-ET
  • year: 4
  • semester: S7

Sections :

  • Cours (order: 1)
  • TD (order: 2)
  • TP (order: 3)

Resources :

  • Pointer vers PDF stockés dans Appwrite Storage ou Google Drive

Variables d'environnement

Copier .env.example vers .env et remplir :

cp .env.example .env

Installation

npm install
npm run dev

Déploiement

Le site sera accessible à : https://tiffank1802.github.io/enise-site-2/

Étapes finales pour activer le déploiement :

  1. Aller sur https://github.com/tiffank1802/enise-site-2/settings/pages
  2. Sous "Build and deployment", sélectionner "GitHub Actions"
  3. Le workflow se lancera automatiquement au prochain push

Pour déclencher le premier déploiement :

git add .
git commit -m "Trigger deployment"
git push origin main

Structure du projet

src/
├── appwrite.js          # Configuration Appwrite
├── App.jsx              # Point d'entrée
├── main.jsx             # Mount React
├── index.css            # Styles
└── components/
    ├── ModulePage.jsx   # Page principale du module
    ├── SectionList.jsx  # Navigation par section
    └── ResourceList.jsx # Liste des ressources
Total size
32.1 GB
Files
673,093
Last updated
Mar 19
Pre-warmed CDN
US EU US EU

Contributors