Skip to content

adrianchifor/whereto

Repository files navigation

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

OPENWEATHERMAP_API_KEY=your-openweathermap-api-key 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 beta run deploy whereto --image gcr.io/$(PROJECT)/whereto:latest \
  --project $(PROJECT) \
  --region your-region \
  --platform managed \
  --allow-unauthenticated \
  --timeout 30 \
  --memory 512Mi \
  --set-env-vars=OPENWEATHERMAP_API_KEY=your-openweathermap-api-key

About

Check weather forecast for largest cities in a map radius

Resources

License

Stars

Watchers

Forks

Releases

No releases published