This is a javascript api for http://www.themoviedb.org/
- AngularJS
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
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.
-
Install Node.js and NPM (should come with)
-
Install local dependencies:
$ npm install
- Install global dependencies
grunt
andtestacular
:
$ npm install -g testacular grunt
Before you commit, always run grunt
to build and test everything once.
$ grunt
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