A simple weather app, powered by Vue 3 and OpenWeatherMap, with ultra-lightweight SVG graphics and icons.
- You can see a live demo at htps://ben-miles.github.io/weather/.
- Clone this repository and provision a web server for the project.
- Make sure Node.js and NPM are installed.
- To work with this app locally, you'll first need an API Key from OpenWeatherMap.
- In the project root, create a copy of
.env-example
, rename it to.env
, and replace the placeholder value ofVITE_OPENWEATHERMAP_KEY
with your API Key. - In the project's root directory, run
npm install
in the terminal.
- It's recommended to use VSCode with the Volar extension.
- For a live preview of the source code, run
npm run dev
.
- This repo uses GitHub Actions (with this Workflow by Vite) to automatically build and deploy to GitHub Pages whenever new code is pushed to the
master
branch. - You can also build locally by running
npm run build
, and you can preview that build withnpm run preview
.