Just copy & paste this code snippet into your project to use this widget!
<iframe
width="680"
height="460"
title="Weather Widget"
frameborder="0"
allow="accelerometer; clipboard-write; picture-in-picture"
allowfullscreen
></iframe>
-
Download the repository.
-
Create
.env
file in the root folder. -
Add two variables to
.env
file:
VUE_APP_OPEN_WEATHER_API_KEY
- OpenWeather API key.
VUE_APP_IPINFO_TOKEN
- ipinfo token. -
Run
npm install
from the root folder.
5.1. To launch in development mode, run npm run serve
.
5.2. To build for production, run npm run build
.