A historical weather charter web app that displays ~20 years of highs and mins on a per month scale for any input location.
- Install Python 3.11.x
- Create virtual environment
$ cd historical-weather-app
$ python -m venv env
- Activate virtual environment and install packages
$ ./env/Scripts/activate
$ pip install --upgrade pip
$ pip install -r app/requirements.txt
- Ensure that the
model_backend
ingbmodel/__init__
is set tosqlite3
- Run app
$ python app/app.py
- Clone repo in Cloud Shell
- Ensure that the
model_backend
ingbmodel/__init__
is set todatastore
- Ensure that the
CLIENT
ingbmodel/model_datastore.py
is set to the project name (same as${GOOGLE_CLOUD_PROJECT}
) - Create docker container from
historical-weather-charter/
- Deploy to Cloud Run
$ git clone https://github.com/henrykaus/historical-weather-charter
$ // Make changes for steps 2 and 3
$ gcloud builds submit --timeout=900 --tag gcr.io/${GOOGLE_CLOUD_PROJECT}/gcp-weather
$ gcloud run deploy gcp-weather --image gcr.io/${GOOGLE_CLOUD_PROJECT}/gcp-weather --service-account [IAM ACCOUNT NAME]@${GOOGLE_CLOUD_PROJECT}.iam.gserviceaccount.com