Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 1.27 KB

README.md

File metadata and controls

60 lines (38 loc) · 1.27 KB

lub-tmbd - TMDB API for angularjs

This is a javascript api for http://www.themoviedb.org/

Requirements

  • AngularJS

Installation

The repository comes with the modules pre-built and compressed into the build/ directory.

angular.module('myApp', ['lub-tmdb-api']).value('lubTmdbApiKey','[ENTER YOUR API KEY HERE]');

To run the example provide an api key in the index.html file

Development

You do not need to build the project to use it - see above - but if you are working on it then this is what you need to know.

Requirements

  1. Install Node.js and NPM (should come with)

  2. Install local dependencies:

$ npm install
  1. Install global dependencies grunt and testacular:
$ npm install -g testacular grunt

Build Files & Run Tests

Before you commit, always run grunt to build and test everything once.

$ grunt

Test & Develop

The modules come with unit tests that should be run on any changes and certainly before commiting changes to the project. The unit tests should also provide further insight into the usage of the modules.

First, start the testacular server:

$ grunt server

Then, open your browser to http://localhost:8080 or run

$ grunt test