-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathapp.sh
35 lines (25 loc) · 1000 Bytes
/
app.sh
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
#!/usr/bin/env bash
# Add PostgreSQL repository and install PostgreSQL
sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -y install postgresql
sudo apt install redis-server
# Clone the repository
git clone https://github.com/GoldenThrust/Virtual-Bank.git
cd Virtual-Bank
# install Python virtual environment
sudo apt install python3.10-venv
sudo apt-get install build-essential
sudo apt-get install python3-dev
# Create a Python virtual environment and activate it
python3 -m venv venv
source venv/bin/activate
# install pip
sudo apt install python3-pip
# Upgrade pip and install requirements within the virtual environment
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
sudo service redis-server start
sudo service postgresql start