-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboard_setup.sh
More file actions
36 lines (27 loc) · 986 Bytes
/
board_setup.sh
File metadata and controls
36 lines (27 loc) · 986 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
#!/bin/bash
# Update and Upgrade the System
echo "Updating and upgrading your system..."
sudo apt-get update && sudo apt-get upgrade -y
# Install Git, Python3, and pip
echo "Installing Git, Python3, and pip..."
sudo apt-get install -y git python3 python3-pip
# Verify Installation
echo "Verifying the installation..."
git --version
python3 --version
pip3 --version
# Create a Python Virtual Environment
echo "Creating a Python virtual environment..."
python3 -m venv flask_env
# Activate the Virtual Environment
echo "Activating the virtual environment..."
source flask_env/bin/activate
# Clone the GitHub Repository
echo "Cloning the GitHub repository..."
git clone https://github.com/LilaShiba/flask_server_ubi.git
# Navigate into the Repository Directory
cd flask_server_ubi
# Install Requirements from requirements.txt
echo "Installing requirements from requirements.txt..."
pip install -r requirements.txt
echo "Setup is complete. Your Flask server environment is ready!"