vue_weather_dashboard
A Simple Weather Dashboard using Darksky API in Vue JS
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
Getting started
- Download *.zip or clone project to your machine.
- Run
npm install
from the project directory - Go to MapQuest Open API and create your own key
- Copy this key
- Go to file
index.html
in the project and insert key instead ofinsert_mapquest_open_api_key_here
- Run
npm run dev
For detailed explanation on how things work, consult the docs for vue-loader.
Building For Production
- Follow the steps in Getting started
- Run
npm run build
Notes
- Based on Smashing Magazine's Article Using Vue.js To Create an Interactive Weather Dashboard With APIs.
- wxUtils.js was created to pull the utility functions out of App.vue
TODO
- Change WX API as DarkSky will be going away due to its acquisition by Apple.