-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sh
More file actions
executable file
·37 lines (29 loc) · 1.03 KB
/
init.sh
File metadata and controls
executable file
·37 lines (29 loc) · 1.03 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
#!/bin/bash
# =============================================================================
# init.sh - Project Initialization Script
# =============================================================================
# Run this script at the start of every session to ensure the environment
# is properly set up and the development server is running.
# =============================================================================
set -e
# Colors
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m'
echo -e "${YELLOW}Initializing Spring FES Video project...${NC}"
# Install dependencies
echo "Installing dependencies..."
cd hello-nextjs && npm install && cd ..
# Start development server in background
echo "Starting development server..."
cd hello-nextjs
npm run dev &
SERVER_PID=$!
cd ..
# Wait for server to be ready
echo "Waiting for server to start..."
sleep 3
echo -e "${GREEN}✓ Initialization complete!${NC}"
echo -e "${GREEN}✓ Dev server running at http://localhost:3000 (PID: $SERVER_PID)${NC}"
echo ""
echo "Ready to continue development."