Go to Weather API free API, sign up and get an API key. In the project root directory, create a file "/.env" and enter your key :
# Private
SECRET_API_KEY="<YOUR_API_KEY>"
# Public
PUBLIC_API_KEY="<YOUR_API_KEY>"
Once you've installed dependencies with npm install
, start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of this app:
npm run build
You can preview the production build with npm run preview
.