{"_id":"28.io-angularjs","_rev":"3-374fe886b83dc0dfc09af4b644dd6fc0","name":"28.io-angularjs","description":"AngularJS bindings for 28.io.","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.4":{"author":{"name":"28msec","email":"hello@28.io","url":"http://28.io"},"name":"28.io-angularjs","description":"AngularJS bindings for 28.io.","version":"0.0.4","keywords":["jsoniq","xquery","dev","cloud"],"homepage":"https://28.io","bugs":{"url":"https://github.com/28msec/28.io-angularjs/issues"},"repository":{"url":"https://github.com/28msec/28.io-angularjs"},"postinstall":"bower install","dependencies":{},"devDependencies":{"grunt":"~0.4.2","grunt-contrib-jshint":"~0.9","grunt-contrib-clean":"~0.5.0","grunt-contrib-uglify":"~0.2.0","grunt-contrib-copy":"~0.4.1","karma":"~0.12.0","grunt-karma":"~0.8.0","grunt-cli":"~0.1.8","phantomjs":"~1.9.2-2","time-grunt":"~0.1.1","load-grunt-tasks":"~0.2.0","grunt-karma-coveralls":"~2.0.2","grunt-contrib-concat":"~0.3.0","grunt-jsdoc":"~0.5.1","grunt-gh-pages":"~0.9.0","karma-script-launcher":"~0.1.0","karma-phantomjs-launcher":"~0.1.2","karma-chrome-launcher":"~0.1.2","karma-firefox-launcher":"~0.1.3","karma-html2js-preprocessor":"~0.1.0","karma-jasmine":"~0.1.5","requirejs":"~2.1.11","karma-requirejs":"~0.2.1","karma-coverage":"~0.2.1","grunt-swagger-js-codegen":"0.4.2","grunt-jsonlint":"~1.0.4"},"contributors":[{"name":"William Candillon","email":"w@28.io"}],"licenses":[{"type":"Apache 2","url":"https://github.com/28msec/28.io-angularjs/blob/master/LICENSE"}],"scripts":{"test":"grunt"},"gitHead":"3c5373de57e9bb0f35c6ee6b7c21fbe3509618ca","_id":"28.io-angularjs@0.0.4","_shasum":"644ff40e66831e5e550144988131691e1c92a7be","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"wcandillon","email":"wcandillon@gmail.com"},"maintainers":[{"name":"wcandillon","email":"wcandillon@gmail.com"}],"dist":{"shasum":"644ff40e66831e5e550144988131691e1c92a7be","tarball":"https://registry.npmjs.org/28.io-angularjs/-/28.io-angularjs-0.0.4.tgz","integrity":"sha512-c3NexNXAmjtqB99ogeDCxVto+ssn0uZCE9InpQ3e/NYA17uLMLI8Qv/6jAOy0MXnW07Le8VG3Kxxk/4ahenWjg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGulOrTiUvGD/pY2H5D2ScICxt+3lTc1bv7g9HM8YgDQAiBs7kVvD2T7psPvScbbrGTVyZneP4RS2uShwvLycDmjOw=="}]}}},"readme":"28.io AngularJS Binding\n============\n[![Build Status](http://img.shields.io/travis/28msec/28.io-angularjs/master.svg?style=flat)](https://travis-ci.org/28msec/28.io-angularjs) [![Code Climate](http://img.shields.io/codeclimate/github/28msec/28.io-angularjs.svg?style=flat)](https://codeclimate.com/github/28msec/28.io-angularjs)\n\n\n28.io-angularjs is an officially supported [AngularJS](http://angularjs.org/) binding\nfor [28.io](http://28.io).\n28.io is a query processing platform that allows you to write complex queries accross multiple data sources - relational databases; document stores, data warehouses and even web services.\n\nWe also have [tutorials](http://www.28.io/blog/tags/tutorial) and an\n[REST API reference](http://www.28.io/documentation/latest/api).\n\nJoin our [28.io Support Group](https://28msec.zendesk.com) to ask questions and provide feedback.\n\n\n## Installation\nVia [Bower](http://bower.io/)\n```bash\n$ bower install 28.io-angularjs --save\n```\n## API Documentation\nhttp://28msec.github.io/28.io-angularjs/3.1.0/\n\n## Example\n\n```javascript\nangular.module('myApp', ['auth.api.28.io', 'queries.api.28.io'])\n.controller('AppCtrl', function($scope, $cacheFactory, Auth, Queries){\n    \n    var projectName = 'myproject';\n    var auth = new Auth('http://portal.28.io', $cacheFactory('Auth'));\n    var queries = new Queries('http://' + projectName + '.28.io/v1', $cacheFactory('Queries'));\n\n    auth.authenticate({ grant_type: 'client_credentials', email: $scope.login, password: $scope.password })\n    .then(function(tokens){\n        var projectToken = tokens.project_tokens['project_' + projectName];\n        queries.listQueries({ visibility: 'public', token: projectToken })\n        .then(function(publicQueries){\n                $scope.publicQueries = publicQueries;\n        })\n        .catch(function(error){\n            alert('Server replied: ' + error.description);\n        });\n    })\n    .catch(function(error) {\n        alert('Server replied: ' + error.description);\n    });\n});\n```\n## Development\nIf you'd like to hack on 28.io-angularjs itself, you'll need\n[node.js](http://nodejs.org/download/), and [Bower](http://bower.io):\n\n```bash\nnpm install && bower install\n```\nUse grunt to build and test the code:\n```bash\n# Default task - build source and then runs unit tests\ngrunt\n\n##License\nApache 2\n","maintainers":[{"name":"wcandillon","email":"wcandillon@gmail.com"}],"time":{"modified":"2022-06-12T14:06:45.816Z","created":"2015-10-06T11:50:35.312Z","0.0.4":"2015-10-06T11:50:35.312Z"},"homepage":"https://28.io","keywords":["jsoniq","xquery","dev","cloud"],"repository":{"url":"https://github.com/28msec/28.io-angularjs"},"contributors":[{"name":"William Candillon","email":"w@28.io"}],"author":{"name":"28msec","email":"hello@28.io","url":"http://28.io"},"bugs":{"url":"https://github.com/28msec/28.io-angularjs/issues"},"readmeFilename":"README.md"}