GitHub - adrianchifor/whereto: Check weather forecast for largest cities in a map radius

1 min read Original article ↗

WhereTo

https://whereto.adrianchifor.com/

Check weather forecast for largest cities in a map radius.

Got a shortlist of cities or areas you want to visit? Next weekend looks free? Use this app to easily filter for the places with the best weather for a mini holiday or citybreak.

Stack:

Run

git clone https://github.com/adrianchifor/whereto.git && cd whereto

pip3 install --user 'fastapi' 'uvicorn[standard]' 'slowapi' 'aiohttp' 'expiring-dict' 'jinja2' 'aiofiles'

# Replace the MapBox accessToken
vim static/main.js

uvicorn main:app --port 8080

# Visit http://localhost:8080

Deploy to Cloud Run

export PROJECT=your-gcloud-project

gcloud builds submit --tag gcr.io/$PROJECT/whereto:latest . --project $PROJECT

gcloud run deploy whereto --image gcr.io/$PROJECT/whereto:latest \
  --project $PROJECT \
  --region your-region \
  --platform managed \
  --allow-unauthenticated \
  --timeout 30 \
  --memory 512Mi