Skip to content

kenberkeley/omdb-vue

Repository files navigation

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)

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published