-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-backend.bat
More file actions
42 lines (34 loc) · 890 Bytes
/
setup-backend.bat
File metadata and controls
42 lines (34 loc) · 890 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
31
32
33
34
35
36
37
38
39
40
41
42
@echo off
echo Configuration du backend Laravel CITIL...
cd citil-backend
echo.
echo 1. Installation des dependances PHP...
composer install
echo.
echo 2. Generation de la cle d'application...
php artisan key:generate
echo.
echo 3. Configuration de la base de donnees SQLite...
if not exist database\database.sqlite (
echo Creation de la base de donnees SQLite...
type nul > database\database.sqlite
)
echo.
echo 4. Execution des migrations...
php artisan migrate --force
echo.
echo 5. Creation de l'utilisateur admin...
php artisan db:seed --class=AdminUserSeeder
echo.
echo 6. Configuration des permissions de stockage...
php artisan storage:link
echo.
echo Configuration terminee!
echo.
echo Pour demarrer le serveur backend:
echo php artisan serve
echo.
echo L'API sera disponible sur: http://localhost:8000
echo Utilisateur admin: admin@citil.tg / password
echo.
pause