- Execute the command
sudo apt update && sudo apt upgrade
. - Install python3 by executing
sudo apt install python3
. - Install python3-venv by executing
sudo apt install python3-venv
. - Clone the Repository
- Go into the repo dir by executing
cd firebase_email
. - Create virtual environment by executing
python3 -m venv venv
. - Create a new screen by executing
screen -S app
. - Activate the virtual env by executing
source venv/bin/activate
. - Install libraries by executing
pip install -r requirements.txt
. - Run the app by executing
python app.py
. - Press
Ctrl+A+D
to detach from screen and exit the terminal. - To close the app, reattach to screen by executing
screen -r app
and pressCtrl+C
.
If your app is already setup by following previous steps, follow these steps -
- SSH into the terminal or activate cloud shell.
- Create the screen by executing
screen -S app
. - Go into app dir
firebase_email
. - Activate virtual env by
source venv/bin/activate
. - Run the app by
python app.py
. - Press
Ctrl+A+D
to detach from screen and exit the terminal.