-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
36 lines (31 loc) · 771 Bytes
/
Copy pathsetup.bat
File metadata and controls
36 lines (31 loc) · 771 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
@echo off
echo Setting up WebWizit Attendance System...
where node >nul 2>nul
if %errorlevel% neq 0 (
echo Node.js is required but not installed. Please install Node.js first.
exit /b 1
)
:: Backend setup
echo Setting up backend...
cd server
npm install
copy .env.example .env
if exist .env (
echo Please edit server/.env with your configuration
) else (
echo .env.example not found. Please create .env manually.
)
pause
npm run init-admin
:: Frontend setup
echo Setting up frontend...
cd ../client
npm install
npm run download-models
echo Setup complete!
echo To start the application:
echo 1. Backend: cd server ^&^& npm run dev
echo 2. Frontend: cd client ^&^& npm start
echo 3. Access: http://localhost:3000
echo 4. Login: admin / admin123
pause