50e25e3ee8
Rename subdirectories for a cleaner single-repo layout: - website-monitoring-backend/ → backend/ - website-monitoring-frontend/ → frontend/ - website-monitoring-devops/ → devops/ Update all references in package.json scripts, CI workflows, docker-compose, pre-commit hooks, and documentation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
26 lines
661 B
Bash
26 lines
661 B
Bash
#!/bin/bash
|
|
|
|
# Working directory setup
|
|
cd /workspaces
|
|
|
|
# Clone repositories if they don't exist
|
|
if [ ! -d "/workspaces/frontend" ]; then
|
|
echo "Cloning Frontend repository..."
|
|
git clone https://github.com/DEINUSERNAME/website-monitoring-frontend /workspaces/frontend
|
|
fi
|
|
|
|
if [ ! -d "/workspaces/backend" ]; then
|
|
echo "Cloning Backend repository..."
|
|
git clone https://github.com/DEINUSERNAME/website-monitoring-backend /workspaces/backend
|
|
fi
|
|
|
|
# Install dependencies
|
|
echo "Installing frontend dependencies..."
|
|
cd /workspaces/frontend
|
|
npm install
|
|
|
|
echo "Installing backend dependencies..."
|
|
cd /workspaces/backend
|
|
npm install
|
|
|
|
echo "Workspace setup complete!" |