The govright.platformServices module provides services that encapsulate
common techniques of interacting with the GovRight Corpus API.
Check the documentation
for detailed API reference.
Add govright.platformServices module as a dependency to your main application module. Example:
<!doctype html><htmlng-app="myApp"><head><scriptsrc="js/angular.js"></script><!-- Include the platform services script --><scriptsrc="dist/govright-platform-services.js"></script><script>// ...and add 'govright.platformServices' as a dependencyvarmyApp=angular.module('myApp',['govright.platformServices']);</script></head><body></body></html>This will add the following services to your app:
- Check the documentation for examples and more detailed description of each service.
- Check this AngularJS boilerplate by GovRight as an example
First install your local project's npm tools:
# This will install all the npm & bower packages:
npm installThen run the gulp tasks:
# To build packaged js files from sources
gulp js
# To build html documentation from source ngdocs# Changes must be commited on `gh-pages` branch
gulp docs
# To run local documentation server
gulp serve
# Build dist and docs
gulpFinally, test the package:
# To run tests from `/test/specs` with npm
npm test