-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.bat
More file actions
50 lines (45 loc) · 1.59 KB
/
Copy pathdeploy.bat
File metadata and controls
50 lines (45 loc) · 1.59 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
@echo off
echo ===================================================
echo AI Job Portal - Setup, Run, and Deploy Script
echo ===================================================
REM 1. Create assets folder and copy the demo image
echo [1/5] Setting up assets and README image...
mkdir assets 2>nul
copy "C:\Users\nikit\.gemini\antigravity-ide\brain\fb03f330-d196-4a34-85f9-070a1689ea57\job_portal_demo_1780204941744.png" "assets\demo.png" >nul
REM 2. Install Backend Dependencies
echo [2/5] Installing Backend Dependencies...
cd server
call npm install
cd ..
REM 3. Scaffold Frontend (Client)
echo [3/5] Scaffolding React Frontend...
IF NOT EXIST "client" (
call npx -y create-vite@latest client --template react
cd client
call npm install
call npm install -D tailwindcss postcss autoprefixer
call npx tailwindcss init -p
cd ..
) ELSE (
echo Frontend already exists. Skipping scaffolding.
)
REM 4. Git Push to GitHub
echo [4/5] Pushing to GitHub...
git init
git add .
git commit -m "Initial commit: Backend API foundation, README, and Frontend scaffold"
git branch -M main
git remote add origin https://github.com/nikita827009-source/AI-Powered-job-portal.git
git push -u origin main
echo ===================================================
echo [5/5] Setup Complete and Code Pushed!
echo ===================================================
echo To run the website, open TWO new terminals in this folder:
echo.
echo Terminal 1 (Backend):
echo cd server ^&^& npm run dev
echo.
echo Terminal 2 (Frontend):
echo cd client ^&^& npm run dev
echo ===================================================
pause