Admin
dashboard
file manager
command
php exec
/
/
var
/
www
/
html
/
halfdeen-dev
/
.augment
/
env
path:
go
upload
mkdir
name
type
size
perms
modified
actions
[parent directory]
setup.sh
file
2,128 B
0775
2025-07-29 09:30:17
edit
delete
rename
editing: setup.sh
#!/bin/bash set -e echo "๐ Setting up Half Deen Series development environment..." # Update system packages sudo apt-get update -y # Install Node.js 18 LTS echo "๐ฆ Installing Node.js 18 LTS..." curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - sudo apt-get install -y nodejs # Install PHP 8.2 and required extensions echo "๐ฆ Installing PHP 8.2 and extensions..." sudo apt-get install -y software-properties-common sudo add-apt-repository ppa:ondrej/php -y sudo apt-get update -y sudo apt-get install -y php8.2 php8.2-cli php8.2-fpm php8.2-mysql php8.2-pgsql php8.2-sqlite3 php8.2-redis php8.2-memcached php8.2-mbstring php8.2-xml php8.2-zip php8.2-bcmath php8.2-soap php8.2-intl php8.2-readline php8.2-ldap php8.2-msgpack php8.2-igbinary php8.2-pcov php8.2-xdebug php8.2-curl php8.2-gd # Install Composer echo "๐ฆ Installing Composer..." curl -sS https://getcomposer.org/installer | php sudo mv composer.phar /usr/local/bin/composer sudo chmod +x /usr/local/bin/composer # Install pnpm with sudo echo "๐ฆ Installing pnpm..." sudo npm install -g pnpm@9.15.0 # Add tools to PATH echo 'export PATH="/usr/local/bin:$PATH"' >> $HOME/.profile # Navigate to workspace cd /mnt/persist/workspace # Install root dependencies echo "๐ฆ Installing root dependencies..." pnpm install # Set up Laravel backend echo "๐ง Setting up Laravel backend..." cd hds-backend-ticketing # Install PHP dependencies composer install --no-interaction --prefer-dist --optimize-autoloader # Create .env file from example if it doesn't exist if [ ! -f .env ]; then cp .env.example .env echo "๐ Created .env file from .env.example" fi # Generate application key php artisan key:generate --ansi # Create SQLite database file for testing mkdir -p database touch database/database.sqlite # Create missing Unit test directory mkdir -p tests/Unit # Run database migrations php artisan migrate --force --no-interaction # Clear any cached config php artisan config:clear --ansi php artisan cache:clear --ansi # Return to root cd .. echo "โ Setup completed successfully!" echo "๐งช Ready to run tests..."
save
cancel