-
Notifications
You must be signed in to change notification settings - Fork 27
/
initialize.sh
30 lines (28 loc) · 911 Bytes
/
initialize.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
#!/bin/sh
if [ ! -d "env" ]; then
echo "Creating virtual environment: env"
python3 -m venv env
source env/bin/activate
echo "Upgrading pip..."
python3 -m pip install --upgrade pip
echo "Installing dependencies..."
pip install -r requirements.txt
echo "Installing pre-commit hooks..."
pre-commit install
echo "Done!"
fi
TWITTER_CONSUMER_KEY=""
TWITTER_CONSUMER_SECRET=""
ROBINHOOD_USER=""
ROBINHOOD_PASS=""
ROBINHOOD_MFA_CODE=""
if [ ! -f ".env" ]; then
echo "Creating .env file to store environment variables..."
touch .env
echo "TWITTER_CONSUMER_KEY = \"$TWITTER_CONSUMER_KEY\"" >> .env
echo "TWITTER_CONSUMER_SECRET = \"$TWITTER_CONSUMER_SECRET\"" >> .env
echo "ROBINHOOD_USER = \"$ROBINHOOD_USER\"" >> .env
echo "ROBINHOOD_PASS = \"$ROBINHOOD_PASS\"" >> .env
echo "ROBINHOOD_MFA_CODE = \"$ROBINHOOD_MFA_CODE\"" >> .env
echo "Done!"
fi