/omdb-vue

An OMDb demo powered by Vue CLI 3.x. Online demo ๐Ÿ‘‰

Primary LanguageVue

An OMDb demo powered by Vue CLI 3.x

The README generated by Vue CLI was moved to README-CLI.md

ยง Online demo

Click here.

ยง Features

$ Quick Start

$ 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

$ Project Structure

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:

ยง Deployment

# 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.

ยง TODO

  • Testings (Unit & E2E)
  • OMDb API request limit (temporary solution: replace VUE_APP_OMDB_API_KEY in .env with the new one)