-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-linux.sh
More file actions
30 lines (24 loc) · 802 Bytes
/
start-linux.sh
File metadata and controls
30 lines (24 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
echo "==================================================="
echo " CoperVault - Secure Local Drive"
echo " Lancement et Installation automatique..."
echo "==================================================="
echo ""
# Vérification de Node.js
if ! command -v node &> /dev/null; then
echo "[ERREUR] Node.js n'est pas installé !"
echo "Veuillez installer Node.js."
exit 1
fi
echo "[1/3] Installation des dépendances..."
if [ ! -d "node_modules" ]; then
npm install
else
echo "Dépendances déjà installées."
fi
echo ""
echo "[2/2] Lancement de l'application (Mode Dev)..."
echo "L'application sera accessible sur http://localhost:3000"
# Ouvrir le navigateur (Linux/Mac)
(sleep 5 && (xdg-open http://localhost:3000 || open http://localhost:3000)) &
npm run dev