-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
49 lines (42 loc) Β· 1.17 KB
/
Copy pathsetup.bat
File metadata and controls
49 lines (42 loc) Β· 1.17 KB
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
43
44
45
46
47
48
49
@echo off
echo π Setting up Portfolio Website...
echo.
REM Check if Node.js is installed
where node >/dev/null 2>/dev/null
if %errorlevel% neq 0 (
echo β Node.js is not installed. Please install Node.js 18+ first.
exit /b 1
)
echo β
Node.js version:
node --version
echo.
REM Install frontend dependencies
echo π¦ Installing frontend dependencies...
call npm install
REM Install backend dependencies
echo π¦ Installing backend dependencies...
cd backend
call npm install
REM Install admin dashboard dependencies
echo π¦ Installing admin dashboard dependencies...
cd ..\admin-dashboard
call npm install
REM Go back to root
cd ..
echo.
echo β
Setup complete!
echo.
echo Next steps:
echo 1. Set up your database (PostgreSQL or Supabase)
echo 2. Copy .env.example to .env in each directory
echo 3. Update the DATABASE_URL in backend\.env
echo 4. Run: cd backend ^&^& npm run prisma:migrate ^&^& npm run seed
echo 5. Start the servers:
echo - Backend: cd backend ^&^& npm run dev
echo - Frontend: npm run dev
echo - Admin: cd admin-dashboard ^&^& npm run dev
echo.
echo Default admin credentials:
echo Email: admin@portfolio.com
echo Password: admin123
pause