-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
34 lines (25 loc) · 877 Bytes
/
setup.sh
File metadata and controls
34 lines (25 loc) · 877 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
#!/bin/bash
# Exit immediately if a command exits with a non-zero status.
set -e
echo "Starting TradeNote setup..."
# Check for Python 3
if ! command -v python3 &> /dev/null
then
echo "Python 3 could not be found. Please install Python 3 to continue."
exit 1
fi
echo "Python 3 found."
# Backend setup
echo "Setting up backend..."
# Create a virtual environment
echo "Creating virtual environment in backend/venv..."
python3 -m venv backend/venv
# Activate the virtual environment and install dependencies
echo "Installing backend dependencies from requirements.txt..."
source backend/venv/bin/activate
pip install -r backend/requirements.txt
echo "Backend setup complete."
echo "----------------------------------------"
echo "Setup finished successfully!"
echo "To run the application, execute: ./tradenote.sh"
echo "----------------------------------------"