-
Install Virtual Env
pip3 install virtualenv
-
Create a Virtual Env
virtaulenv myenv
-
activate the environment
source myenv/bin/activate
-
Install Flask
pip3 install Flask
-
do pip freeze to have all modules in one file
pip3 freeze > requirements.txt
-
Export Flask
export FLASK_APP=main.py
-
Run Flask Project on Local Machine
flask run
-
Create app.yaml
-
Download GCP from
https://cloud.google.com/sdk/docs/install-sdk
-
Unzip the file and run this
./google-cloud-sdk/install.sh
-
Initialize gcloud
gcloud init
-
Deploy the App
gcloud app deploy