Local Favorites is a Vue.js web app to save and review your favorite local places, powered by Google Maps Javascript API. Bootstrapped with Vue CLI tool.
npm install
- Get a Google Maps API key that is enabled for both
Maps Javascript API
andPlaces API for Web
- Create a
.env.local
file in the root directory and add the following line:VUE_APP_MAP_API=<your Maps API key>
npm run serve
The app uses the Vue CLI settings to compile Vue, Sass, and JS code. To support IE 10/11 the app uses the useBuiltIns: entry
option in babel.config.js
and import @babel/polyfill
in main.js.
Sass variables, located in scss/_variables.scss
are available to all Vue component files using the css
options in vue.config.js
.
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Lints and fixes files
npm run lint