-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
37 lines (31 loc) · 760 Bytes
/
setup.sh
File metadata and controls
37 lines (31 loc) · 760 Bytes
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
# setup.sh - Setup script for PrivilegePredict
echo "Setting up PrivilegePredict..."
# Create necessary directories
echo "Creating directories..."
mkdir -p logs
mkdir -p data
# Install backend dependencies
echo "Installing backend dependencies..."
cd backend
pip install -r requirements.txt
cd ..
# Install frontend dependencies
echo "Installing frontend dependencies..."
cd frontend
npm install
cd ..
# Initialize git repository if it doesn't exist
if [ ! -d ".git" ]; then
echo "Initializing git repository..."
git init
git add .
git commit -m "Initial commit"
fi
echo "Setup completed successfully!"
echo ""
echo "To start the application:"
echo " docker-compose up"
echo ""
echo "Or to run locally:"
echo " make run-all"