A more complex weather app, building on from brodie969/weather.
This code is fairly stable, so see How To Run Locally to try.
-
Get your free API Key from WeatherAPI
-
Clone this repo
Or Use Git:
git clone https://github.com/brodie969/complex-weather/-
Create a file called
secrets.js. -
Place your key in
secrets.jsas follows:
export const API_KEY = "1234567890";- Start a local development server with your preferred method
(Mine is with Python's http server: python -m http.server 8000)
- Visit
localhost:8000in your browser, and now you can view the weather around the world!