initial commit

This commit is contained in:
y.campiontrebouta@innotexnas.ovh
2026-02-04 19:04:46 +01:00
commit abb51904d7
27 changed files with 4011 additions and 0 deletions

41
install.sh Executable file
View File

@@ -0,0 +1,41 @@
#!/bin/bash
# Configuration pour l'interface web du serveur Minecraft NationsGlory
# ====================================================================
echo "🚀 Installation de l'interface web NationsGlory Admin..."
# Vérifier que Node.js est installé
if ! command -v node &> /dev/null; then
echo "❌ Node.js n'est pas installé. Veuillez l'installer d'abord."
exit 1
fi
echo "✓ Node.js détecté: $(node --version)"
# Créer le fichier .env
if [ ! -f backend/.env ]; then
echo "Création du fichier .env..."
cp backend/.env.example backend/.env
echo "✓ Fichier .env créé. À personnaliser dans backend/.env"
fi
# Installer les dépendances du backend
echo ""
echo "📦 Installation des dépendances backend..."
cd backend
npm install
cd ..
echo ""
echo "✅ Installation terminée!"
echo ""
echo "📝 Prochaines étapes:"
echo "1. Modifiez backend/.env avec la bonne configuration"
echo "2. Lancez le serveur: cd backend && npm start"
echo "3. Accédez à l'interface: http://localhost:3000"
echo ""
echo " IMPORTANT: Activez RCON dans le server.properties du serveur MC:"
echo " - enable-rcon=true"
echo " - rcon.port=25575"
echo " - rcon.password=votre_mdp"