-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-dev.sh
More file actions
executable file
Β·39 lines (31 loc) Β· 1.06 KB
/
Copy pathsetup-dev.sh
File metadata and controls
executable file
Β·39 lines (31 loc) Β· 1.06 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
#!/bin/bash
# BYOC Development Environment Setup Script
# This script sets up the development environment using nvm
echo "π° Setting up BYOC development environment..."
# Load nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# Check if nvm is loaded
if ! command -v nvm &> /dev/null; then
echo "β nvm not found. Please install nvm first."
echo "Run: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash"
exit 1
fi
# Use Node.js 20 (recommended for this project)
echo "π¦ Using Node.js 20..."
nvm use 20
# Install dependencies if node_modules doesn't exist
if [ ! -d "node_modules" ]; then
echo "π₯ Installing dependencies..."
npm install
else
echo "β
Dependencies already installed"
fi
# Check Node.js and npm versions
echo "π Current versions:"
echo "Node.js: $(node --version)"
echo "npm: $(npm --version)"
echo ""
echo "π Development environment ready!"
echo "π Run 'npm run dev' to start the development server"
echo "π The app will be available at http://localhost:4321"