1.0.17 • Published 7 years ago

component-moviebite-vuejs v1.0.17

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

Component Moviebite Vuejs

Vue Moviebite Template Component

Coverage Status

Synopsis

To deliver the top movies currently in theaters

Code Examples

Install:

npm install component-moviebite-vuejs --save

Usage:

Vue.use(Moviebite, options);

or within existing components:

import Moviebite from 'component-moviebite-vuejs';

export default {
    components: {
        Moviebite
    }
}

Installation

Install dependencies:

npm install

Copy .env.example to create .env:

cp .env.example .env

Copy config files over:

cp ./src/config/build.js ./src/config/development.js

Serve with hot reload at localhost:8080 (default):

npm run dev

Build for production with minification:

npm run build

Documentation

Properties

NameTypeDescription
urlStringThe base url origin for api end point
tokenStringAPI access token
typeStringType of parameter being sent (Options: in-theaters,opening, upcoming) in-theaters
limitNumberLimits the number of items shown in the widget 6
sortByStringSorting the movie results (Options: popularity, release, tomato) popularity
showTitleBooleanOptions to display or hide heading true
layoutStringLayout to show the tweets (Options: swiper, list, grid) swiper

Test

All widgets should have unit tests associated with them. To run all tests

npm test

For developments test with hot reloading at localhost:3001

npm run test:dev

To run tests with coveralls support:

npm run test:coveralls

Style Guide

All project should follow JS Style guide. Style guide is a modified version of airbnb, and should be referenced during development. Any modified rules can be found in .eslintc.json file.

To run eslint:

npm run lint

To fix eslint errors:

npm run lint:fix

Local Setup

1.0.17

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago