initial commit
This commit is contained in:
136
QUICKSTART.md
Normal file
136
QUICKSTART.md
Normal file
@@ -0,0 +1,136 @@
|
||||
# 🎯 Guide Rapide - Démarrage en 5 Minutes
|
||||
|
||||
## Prérequis
|
||||
- Node.js 14+ installé
|
||||
- Serveur Minecraft avec RCON activé
|
||||
- Vous devez être OP sur le serveur
|
||||
|
||||
## ⚡ Installation Express
|
||||
|
||||
### 1️⃣ Configuration du serveur MC (10 secondes)
|
||||
|
||||
Éditer le fichier `server.properties` du serveur Minecraft:
|
||||
|
||||
```properties
|
||||
enable-rcon=true
|
||||
rcon.port=25575
|
||||
rcon.password=YourPassword123
|
||||
```
|
||||
|
||||
Redémarrer le serveur MC.
|
||||
|
||||
### 2️⃣ Installation de l'app (2 minutes)
|
||||
|
||||
```bash
|
||||
cd /home/innotex/Documents/Projet/Serveur\ NationsGlory/WebNationsGlory_ServeurBuild_Red
|
||||
|
||||
# Installation automatique
|
||||
./install.sh
|
||||
```
|
||||
|
||||
### 3️⃣ Configuration (1 minute)
|
||||
|
||||
```bash
|
||||
# Éditer le fichier
|
||||
nano backend/.env
|
||||
```
|
||||
|
||||
Vérifiez:
|
||||
```env
|
||||
PORT=3000
|
||||
SERVER_DIR=/home/innotex/Documents/Projet/Serveur NationsGlory/NationsGlory_ServeurBuild_Red
|
||||
RCON_HOST=localhost
|
||||
RCON_PORT=25575
|
||||
```
|
||||
|
||||
### 4️⃣ Lancement (30 secondes)
|
||||
|
||||
```bash
|
||||
./start.sh
|
||||
```
|
||||
|
||||
Vous devriez voir:
|
||||
```
|
||||
🚀 Backend Admin NationsGlory démarré sur http://localhost:3000
|
||||
```
|
||||
|
||||
### 5️⃣ Accès (10 secondes)
|
||||
|
||||
Ouvrez: **http://localhost:3000**
|
||||
|
||||
## 👤 Premier Compte
|
||||
|
||||
1. Remplissez le formulaire d'enregistrement:
|
||||
- Nom d'utilisateur: `admin` (ou ce que vous voulez)
|
||||
- Mot de passe: Votre mot de passe
|
||||
- Pseudo Minecraft: **VOTRE NOM DE JOUEUR** (doit être OP!)
|
||||
|
||||
2. Cliquez "Créer le compte"
|
||||
|
||||
3. Connectez-vous avec vos identifiants
|
||||
|
||||
## ✅ Test Rapide
|
||||
|
||||
1. Allez à l'onglet **Console RCON**
|
||||
2. Tapez: `/time query daytime`
|
||||
3. Cliquez "Envoyer"
|
||||
4. Vous devriez voir l'heure du serveur
|
||||
|
||||
Si ça marche = ✓ Tout est bon!
|
||||
|
||||
## 🎮 Commandes Utiles
|
||||
|
||||
```
|
||||
/say Bienvenue! → Message à tous
|
||||
/tp @s 0 100 0 → Se téléporter
|
||||
/give @p diamond 64 → Donner des items
|
||||
/weather clear → Météo
|
||||
/difficulty 3 → Difficulté
|
||||
/time set day → Midi
|
||||
```
|
||||
|
||||
## ⚠️ Problèmes Courants
|
||||
|
||||
| Problème | Solution |
|
||||
|----------|----------|
|
||||
| "Timeout RCON" | Vérifier que le serveur MC est en ligne |
|
||||
| "Mot de passe incorrect" | Vérifier dans server.properties |
|
||||
| "Joueur n'est pas OP" | Faire `/op NomDuJoueur` sur le serveur MC |
|
||||
| "Impossible de se connecter" | Vérifier que `npm start` est lancé |
|
||||
|
||||
## 📁 Fichiers Importants
|
||||
|
||||
```
|
||||
backend/
|
||||
├── .env ← Configuration (à modifier)
|
||||
├── package.json ← Dépendances
|
||||
└── src/
|
||||
├── server.js ← Point d'entrée
|
||||
└── routes/ ← API endpoints
|
||||
|
||||
frontend/
|
||||
└── public/
|
||||
└── index.html ← Interface web
|
||||
```
|
||||
|
||||
## 🔐 Sécurité Basique
|
||||
|
||||
1. Changez `SESSION_SECRET` dans `.env` (ligne importante)
|
||||
2. Utilisez un mot de passe RCON fort
|
||||
3. Ne partagez pas vos identifiants
|
||||
|
||||
## 📖 Documentation Complète
|
||||
|
||||
- **README.md** - Vue d'ensemble complète
|
||||
- **CONFIGURATION.md** - Configuration détaillée
|
||||
- **DEPLOYMENT.md** - Déploiement en production
|
||||
|
||||
## 🆘 Besoin d'aide?
|
||||
|
||||
1. Vérifiez les logs: `npm start` affiche tout
|
||||
2. Testez RCON: `echo "status" | nc localhost 25575`
|
||||
3. Lisez CONFIGURATION.md pour plus de détails
|
||||
|
||||
---
|
||||
|
||||
**Vous êtes prêt!** 🚀 Profitez de votre interface!
|
||||
Reference in New Issue
Block a user