AngularJS SDK provides core functionality for building web and mobile applications on [Baasic](http://www.baasic.com/).
npm install baasic-sdk-angularjshtml
`
Note: Baasic JavaScript SDK uses jQuery for http communication only if JavaScript SDK is used as stand-alone library, inside the AngularJS SDK $http service is used.
$3
To be able to use the library you will need to add the Baasic (_baasic.api_) dependency to your AngularJS module.
`javascript
angular.module('my-module', ["baasic.api"])
`
$3
Baasic AngularJS library allows you to use multiple Baasic applications in your AngularJS modules. To initialize a Baasic application you will need to add the following code to you module configuration:
`javascript
module.config(["baasicAppProvider",
function (baasicAppProvider) {
var app = baasicAppProvider.create("", {
apiRootUrl: "api.baasic.com",
apiVersion: ""
});
}]);
`
Note: _To obtain a Baasic Application Identifier please create your application on Baasic Registration page._
Baasic Modules
Baasic back-end contains various built-in modules that can be easily consumed through the Baasic AngularJS library. Baasic Developer Center contains detailed information about all the core modules supported by the AngularJS library.
Build Process
1. Install NodeJs
2. Open Shell/Command Prompt in the Baasic AngularJS folder
3. Run npm install
4. Install gulp globally: npm install -g gulp
5. Run gulp`