Weather app using Vue.js, Google Maps Geocoding, and Dark Sky.
Rename .keys.js.example
to .keys.js
and add your Google JavaScript API keys. The prod
key is exposed in your frontend code, so make sure you restrict the HTTP referrer to only allow requests from your production URL. This can be done in the Google API Console. The dev
key is not included in production code and therefore don't need the same restrictions.
The API backend for this project is located here. This is required for the project to run. The backend API fetches geolocation data from Google and weather data from Dark Sky and returns it to the Weather Vue app.
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
For detailed explanation on how things work, checkout the Vue.js Webpack guide and docs for vue-loader.
This project is licensed under the MIT License - see the LICENSE.md file for details