A simple app to play with vue resources
# 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
This app use APIs from Google Maps and AccuWeather. After you get your own keys, rename .env.sample to .env and put them in it.
When I ran the npm run test
commmand, I had an error like this:
ERROR in Error: Child compilation failed:
Entry module not found: Error: Can't resolve '/Users/guneto/Developer/vue-weather-dahboard/.tmp/mocha-webpack/index.html' in '/Users/guneto/Developer/vue-weather-dahboard/.tmp/mocha-webpack':
Error: Can't resolve '/Users/guneto/Developer/vue-weather-dahboard/.tmp/mocha-webpack/index.html' in '/Users/guneto/Developer/vue-weather-dahboard/.tmp/mocha-webpack'
Accordingly with this issue, I solved the problem just creating the file:
touch /Users/guneto/Developer/vue-weather-dahboard/.tmp/mocha-webpack/index.html
Adjust the path to your own
For detailed explanation on how things work, checkout the guide and docs for vue-loader.