-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
57 lines (49 loc) · 1.53 KB
/
Copy pathsetup.bat
File metadata and controls
57 lines (49 loc) · 1.53 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
50
51
52
53
54
55
56
57
@echo off
REM VastuWise AI - Quick Setup Script for Windows
REM This script automates the setup process
echo 🏛️ VastuWise AI - Quick Setup
echo ================================
echo.
REM Check if we're in the right directory
if not exist "package.json" (
echo ❌ Error: Please run this script from the project root directory
exit /b 1
)
REM Step 1: Install backend dependencies
echo 📦 Step 1/5: Installing backend dependencies...
cd backend
call npm install
cd ..
REM Step 2: Install mobile app dependencies
echo 📦 Step 2/5: Installing mobile app dependencies...
call npm install
REM Step 3: Create backend .env file
echo ⚙️ Step 3/5: Creating environment configuration...
if not exist "backend\.env" (
copy backend\.env.example backend\.env
echo ✅ Created backend\.env - Please update with your configuration
) else (
echo ⚠️ backend\.env already exists - skipping
)
REM Step 4: Generate Prisma client
echo 🔧 Step 4/5: Generating Prisma client...
cd backend
call npm run prisma:generate
cd ..
echo.
echo ✅ Setup Complete!
echo.
echo 📋 Next Steps:
echo 1. Update backend\.env with your database URL and secrets
echo 2. Run: cd backend ^&^& npm run prisma:migrate
echo 3. Start backend: cd backend ^&^& npm run dev
echo 4. In new terminal, start mobile: npm run android (or npm run ios)
echo.
echo 📚 Documentation:
echo - Quick Start: QUICK_START.md
echo - Backend Setup: backend\README.md
echo - Mobile Setup: MOBILE_SETUP.md
echo - Auth Guide: AUTHENTICATION_GUIDE.md
echo.
echo 🚀 Happy coding!
pause