An OMDb demo powered by Vue CLI 3.x
The README generated by Vue CLI was moved to README-CLI.md
Click here.
- Basics: Vue + Vuex + Vue Router + Axios
- UI lib: Bulma + Font Awesome 5, Fully Responsive & Mobile First!
- Eliminate unused styles by PurgeCSS
- Auto polyfill (browser compatibility list) powered by Polyfill.io
- Save query parameters in the URL (inspired by LinkedIn Jobs)
$ git clone https://github.com/kenberkeley/omdb-vue.git
$ cd omdb-vue/
# Install dependencies
$ npm i
# Run!
$ npm run serve
Then open http://localhost:8080
Only
src/
will be elaborated below
src/
βββ assets/
βββ components/
βββ constants/ # All global scope keys (e.g. URL query params, storage) should go here to avoid name collisions
βββ pages/
β βββ index/
β βββ comps/ # Used by index page only
β βββ index.vue
βββ router/
βββ store/
βββ utils/
βββ App.vue
βββ main.js
Reference:
- Folder-by-type or Folder-by-feature (Stack Exchange)
- How to better organize your React applications? (Medium)
# Compile for production
$ npm run build
# npm run build -- --report # generate report.html to analyze bundle content
# Publish to Github Pages (https://bit.ly/2YeUyzG)
$ npm run deploy
Check out Deployment (Vue CLI Doc) for more information.