Clone project
git clone https://github.com/yuong1979/streamlit_firebase.git
Change directory into the project
cd streamlit_firebase
Start a the virtual environment
python3 -m venv venv
Run the virtual environment
source venv/bin/activate
Install the requirements
pip install -r requirements.txt
Create a serviceaccountkey to connect to firestore
Create a firebase app config key to connect to firebase auth
Insert both json files in the streamlit_firebase/secret directory
Run the server only local
streamlit run app.py
Access app through url http://localhost:5000/
Comment out the production code on Dockerfile
Build the image
docker build -t finapp .
Deploy the image
docker run -p 8501:8501 finapp
Access app through url http://localhost:5000/
Comment out the development code on Dockerfile
Initialize gcloud
gcloud init
Build image
gcloud builds submit --tag gcr.io/testing-33c79/finance_app
Deploy image
gcloud run deploy --image gcr.io/testing-33c79/finance_app