Weather app using Vue.js, Google Maps Geocoding, and Dark Sky.
# clone repo and API submodule git clone https://github.com/krestaino/weather-vue.git --recursive # to fetch submodule if already cloned without the `--recursive` flag git submodule update --init
The API backend for this project is a REST API using Node and Express. It's included in this project as a submodule and located in
./api. The repo can be found here. This backend API fetches geolocation data from Google and weather data from Dark Sky and returns it to the Weather Vue app.
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, so it doesn't need the same restrictions.
# install dependencies npm install # serve with hot reload at localhost:8080 and API at localhost:3000 npm run dev # build for production with minification npm run build # build for production and view the bundle analyzer report npm run build --report
This project is licensed under the MIT License - see the LICENSE.md file for details